diff options
author | chriseth <c@ethdev.com> | 2017-01-26 23:24:03 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2017-01-26 23:39:07 +0800 |
commit | a98fa41897950b84b0217c9ce3c79c20009d0c8d (patch) | |
tree | d754e021f0e75cff25b0866f4d27617cc6144031 /libsolidity/codegen | |
parent | d9fbb83861153499b4aec5525db85ec59445abd1 (diff) | |
download | dexon-solidity-a98fa41897950b84b0217c9ce3c79c20009d0c8d.tar.gz dexon-solidity-a98fa41897950b84b0217c9ce3c79c20009d0c8d.tar.zst dexon-solidity-a98fa41897950b84b0217c9ce3c79c20009d0c8d.zip |
Uninitialized internal function should call INVALID.
Diffstat (limited to 'libsolidity/codegen')
-rw-r--r-- | libsolidity/codegen/CompilerUtils.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libsolidity/codegen/CompilerUtils.cpp b/libsolidity/codegen/CompilerUtils.cpp index 67877bbf..477f021a 100644 --- a/libsolidity/codegen/CompilerUtils.cpp +++ b/libsolidity/codegen/CompilerUtils.cpp @@ -807,7 +807,9 @@ void CompilerUtils::pushZeroValue(Type const& _type) { if (funType->location() == FunctionType::Location::Internal) { - m_context.appendInvalid(); + m_context << m_context.lowLevelFunctionTag("$invalidFunction", 0, 0, [](CompilerContext& _context) { + _context.appendInvalid(); + }); return; } } |