mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Make analysis success not only dependent on flag but also on error list.
This commit is contained in:
parent
1b6d87c5bd
commit
372853b192
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user