about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAjax <commial@gmail.com>2017-06-14 11:00:39 +0200
committerAjax <commial@gmail.com>2017-06-14 11:00:39 +0200
commitc69082cde1e75281d6f3349261993c49c2f5c185 (patch)
treeb27e24e047608a19748a65f2296f4f11657d2286
parentb974d4da277ca9a87527f4bedfeb55114f365e90 (diff)
downloadmiasm-c69082cde1e75281d6f3349261993c49c2f5c185.tar.gz
miasm-c69082cde1e75281d6f3349261993c49c2f5c185.zip
Remove also from .blocks (not synchronized with the graph)
-rw-r--r--miasm2/ir/ir.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/miasm2/ir/ir.py b/miasm2/ir/ir.py
index 2509e901..7c39cf04 100644
--- a/miasm2/ir/ir.py
+++ b/miasm2/ir/ir.py
@@ -810,6 +810,7 @@ class IntermediateRepresentation(object):
             if (len(self.graph.predecessors(label)) == 0 and
                 len(self.graph.successors(label)) == 0):
                 self.graph.del_node(label)
+                del self.blocks[label]
         return modified
 
     def merge_blocks(self):