Skip to content

Commit 63f0a22

Browse files
committed
Also save and restore the nesting depth.
1 parent 2bcb027 commit 63f0a22

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libyul/optimiser/UnusedStoreBase.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ void UnusedStoreBase::operator()(FunctionDefinition const& _functionDefinition)
7373
{
7474
ScopedSaveAndRestore outerAssignments(m_stores, {});
7575
ScopedSaveAndRestore forLoopInfo(m_forLoopInfo, {});
76+
ScopedSaveAndRestore forLoopNestingDepth(m_forLoopNestingDepth, 0);
7677

7778
(*this)(_functionDefinition.body);
7879

0 commit comments

Comments
 (0)