Use returning erase variant.

This commit is contained in:
chriseth 2015-05-11 19:44:45 +02:00
parent 2870281fe8
commit aafa354a95

View File

@ -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++;
} }