mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #12730 from ethereum/saveRestoreNestingDepth
Also save and restore the nesting depth.
This commit is contained in:
commit
e8520a667b
@ -73,6 +73,7 @@ void UnusedStoreBase::operator()(FunctionDefinition const& _functionDefinition)
|
|||||||
{
|
{
|
||||||
ScopedSaveAndRestore outerAssignments(m_stores, {});
|
ScopedSaveAndRestore outerAssignments(m_stores, {});
|
||||||
ScopedSaveAndRestore forLoopInfo(m_forLoopInfo, {});
|
ScopedSaveAndRestore forLoopInfo(m_forLoopInfo, {});
|
||||||
|
ScopedSaveAndRestore forLoopNestingDepth(m_forLoopNestingDepth, 0);
|
||||||
|
|
||||||
(*this)(_functionDefinition.body);
|
(*this)(_functionDefinition.body);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user