Merge pull request #6049 from ethereum/asmstack-optim

Assert for parserResult in optimize in AssemblyStack
This commit is contained in:
chriseth 2019-02-20 15:04:14 +01:00 committed by GitHub
commit ed73579d67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.");
}