Do not ignore fatal error in AsmParser for inline assembly

This commit is contained in:
Alex Beregszaszi
2019-02-21 16:18:53 +00:00
parent 15d275ed37
commit fcf884f201
12 changed files with 3 additions and 12 deletions
+2
View File
@@ -1043,6 +1043,8 @@ ASTPointer<InlineAssembly> Parser::parseInlineAssembly(ASTPointer<ASTString> con
yul::Parser asmParser(m_errorReporter, yul::EVMDialect::looseAssemblyForEVM());
shared_ptr<yul::Block> block = asmParser.parse(m_scanner, true);
if (block == nullptr)
BOOST_THROW_EXCEPTION(FatalError());
nodeFactory.markEndPosition();
return nodeFactory.createNode<InlineAssembly>(_docString, block);
}