Make analysis success not only dependent on flag but also on error list.

This commit is contained in:
chriseth
2019-02-20 14:57:58 +01:00
parent 1b6d87c5bd
commit 372853b192
+4 -1
View File
@@ -52,7 +52,10 @@ bool AsmAnalyzer::analyze(Block const& _block)
if (!(ScopeFiller(m_info, m_errorReporter))(_block))
return false;
return (*this)(_block);
bool success = (*this)(_block);
if (!success)
solAssert(m_errorReporter.hasErrors(), "No success but no error.");
return success && !m_errorReporter.hasErrors();
}
AsmAnalysisInfo AsmAnalyzer::analyzeStrictAssertCorrect(