mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #6027 from ethereum/failEnErrorListNonEmpty
Make analysis success not only dependent on flag but also on error list.
This commit is contained in:
commit
00084a9bd7
@ -52,7 +52,10 @@ bool AsmAnalyzer::analyze(Block const& _block)
|
|||||||
if (!(ScopeFiller(m_info, m_errorReporter))(_block))
|
if (!(ScopeFiller(m_info, m_errorReporter))(_block))
|
||||||
return false;
|
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(
|
AsmAnalysisInfo AsmAnalyzer::analyzeStrictAssertCorrect(
|
||||||
|
Loading…
Reference in New Issue
Block a user