mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Use returning erase variant.
This commit is contained in:
parent
2870281fe8
commit
aafa354a95
@ -289,7 +289,7 @@ void ControlFlowGraph::gatherKnowledge()
|
|||||||
// Note that this invalidates some contents of pushedTags
|
// Note that this invalidates some contents of pushedTags
|
||||||
for (auto it = m_blocks.begin(); it != m_blocks.end();)
|
for (auto it = m_blocks.begin(); it != m_blocks.end();)
|
||||||
if (!it->second.startState)
|
if (!it->second.startState)
|
||||||
m_blocks.erase(it++);
|
it = m_blocks.erase(it);
|
||||||
else
|
else
|
||||||
it++;
|
it++;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user