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
+1 -2
View File
@@ -48,8 +48,7 @@ shared_ptr<Block> Parser::parse(std::shared_ptr<Scanner> const& _scanner, bool _
}
catch (FatalError const&)
{
if (m_errorReporter.errors().empty())
throw; // Something is weird here, rather throw again.
solAssert(!m_errorReporter.errors().empty(), "Fatal error detected, but no error is reported.");
}
return nullptr;
}