mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #6049 from ethereum/asmstack-optim
Assert for parserResult in optimize in AssemblyStack
This commit is contained in:
commit
ed73579d67
@ -87,6 +87,7 @@ void AssemblyStack::optimize()
|
||||
solUnimplemented("Optimizer for both loose assembly and Yul is not yet implemented");
|
||||
solAssert(m_analysisSuccessful, "Analysis was not successful.");
|
||||
m_analysisSuccessful = false;
|
||||
solAssert(m_parserResult, "");
|
||||
optimize(*m_parserResult);
|
||||
solAssert(analyzeParsed(), "Invalid source code after optimization.");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user