Merge pull request #12730 from ethereum/saveRestoreNestingDepth

Also save and restore the nesting depth.
This commit is contained in:
Daniel Kirchner
2022-03-02 14:21:56 +01:00
committed by GitHub
+1
View File
@@ -73,6 +73,7 @@ void UnusedStoreBase::operator()(FunctionDefinition const& _functionDefinition)
{
ScopedSaveAndRestore outerAssignments(m_stores, {});
ScopedSaveAndRestore forLoopInfo(m_forLoopInfo, {});
ScopedSaveAndRestore forLoopNestingDepth(m_forLoopNestingDepth, 0);
(*this)(_functionDefinition.body);