Catch FatalError in CompilerStack::analysis to cover all the analysis tests

This commit is contained in:
Alex Beregszaszi
2018-04-06 13:52:19 +02:00
parent d5f40c141b
commit e8be0e61b3
2 changed files with 11 additions and 11 deletions
+1 -11
View File
@@ -60,17 +60,7 @@ bool typeSupportedByOldABIEncoder(Type const& _type)
bool TypeChecker::checkTypeRequirements(ASTNode const& _contract)
{
try
{
_contract.accept(*this);
}
catch (FatalError const&)
{
// We got a fatal error which required to stop further type checking, but we can
// continue normally from here.
if (m_errorReporter.errors().empty())
throw; // Something is weird here, rather throw again.
}
_contract.accept(*this);
return Error::containsOnlyWarnings(m_errorReporter.errors());
}