Uninitialized internal function should call INVALID.

This commit is contained in:
chriseth 2017-01-26 16:24:03 +01:00
parent d9fbb83861
commit a98fa41897

View File

@ -807,7 +807,9 @@ void CompilerUtils::pushZeroValue(Type const& _type)
{ {
if (funType->location() == FunctionType::Location::Internal) if (funType->location() == FunctionType::Location::Internal)
{ {
m_context.appendInvalid(); m_context << m_context.lowLevelFunctionTag("$invalidFunction", 0, 0, [](CompilerContext& _context) {
_context.appendInvalid();
});
return; return;
} }
} }