From aafa354a958bae0070bc3ce846b121ad048c6f01 Mon Sep 17 00:00:00 2001
From: chriseth <c@ethdev.com>
Date: Mon, 11 May 2015 19:44:45 +0200
Subject: [PATCH] Use returning erase variant.

---
 ControlFlowGraph.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ControlFlowGraph.cpp b/ControlFlowGraph.cpp
index 7ed56ff1a..cc68b2af8 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++;
 }