about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAjax <commial@gmail.com>2015-12-07 11:25:04 +0100
committerAjax <commial@gmail.com>2015-12-07 11:25:04 +0100
commitd95af9858230c41449d6fd487a93bdc337780ea7 (patch)
tree2c65f005adb7830853664451aed3f2cd05a9be73
parentaacc2b4f42beeb822e98febce065041d9ab41568 (diff)
downloadmiasm-d95af9858230c41449d6fd487a93bdc337780ea7.tar.gz
miasm-d95af9858230c41449d6fd487a93bdc337780ea7.zip
IR: Rebuild graph on `add_node`
-rw-r--r--miasm2/ir/ir.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/miasm2/ir/ir.py b/miasm2/ir/ir.py
index 04f964d6..f957fcab 100644
--- a/miasm2/ir/ir.py
+++ b/miasm2/ir/ir.py
@@ -343,6 +343,8 @@ class ir(object):
 
             self.blocs[irb.label] = irb
 
+        # Forget graph if any
+        self._graph = None
 
     def get_instr_label(self, instr):
         """Returns the label associated to an instruction