diff options
author | chriseth <c@ethdev.com> | 2015-05-12 01:44:45 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2015-05-12 01:44:45 +0800 |
commit | aafa354a958bae0070bc3ce846b121ad048c6f01 (patch) | |
tree | 500c3cd97bbcc5d79d0c23966af969fd8537d6ac | |
parent | 2870281fe8cd70a27d69cbdc6ab97b6d48c11409 (diff) | |
download | dexon-solidity-aafa354a958bae0070bc3ce846b121ad048c6f01.tar.gz dexon-solidity-aafa354a958bae0070bc3ce846b121ad048c6f01.tar.zst dexon-solidity-aafa354a958bae0070bc3ce846b121ad048c6f01.zip |
Use returning erase variant.
-rw-r--r-- | ControlFlowGraph.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ControlFlowGraph.cpp b/ControlFlowGraph.cpp index 7ed56ff1..cc68b2af 100644 --- a/ControlFlowGraph.cpp +++ b/ControlFlowGraph.cpp @@ -289,7 +289,7 @@ void ControlFlowGraph::gatherKnowledge() // Note that this invalidates some contents of pushedTags for (auto it = m_blocks.begin(); it != m_blocks.end();) if (!it->second.startState) - m_blocks.erase(it++); + it = m_blocks.erase(it); else it++; } |