about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCamille Mougey <commial@gmail.com>2015-03-20 20:09:11 +0100
committerCamille Mougey <commial@gmail.com>2015-03-20 20:09:11 +0100
commitd27b5c1f91248a041b7ce28a782092a74ad6803b (patch)
treea62efeadb426d298bbfa8c2b427e2041c75b6c2d
parentb9a2428237c75f398538f164d9d52d1a69eee082 (diff)
parent1ed5b67a56360e92b45b11fb6134903d2b9a5574 (diff)
downloadmiasm-d27b5c1f91248a041b7ce28a782092a74ad6803b.tar.gz
miasm-d27b5c1f91248a041b7ce28a782092a74ad6803b.zip
Merge pull request #120 from serpilliere/dead_simp_fix
degraph: remove useless ira creation
Diffstat (limited to '')
-rw-r--r--miasm2/analysis/depgraph.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/miasm2/analysis/depgraph.py b/miasm2/analysis/depgraph.py
index bb827c00..ead5c8a9 100644
--- a/miasm2/analysis/depgraph.py
+++ b/miasm2/analysis/depgraph.py
@@ -353,7 +353,6 @@ class DependencyResult(object):
         /!\ The emulation is not safe if there is a loop in the relevant labels
         """
         # Init
-        new_ira = (self._ira.__class__)()
         depnodes = self.relevant_nodes
         affects = []
 
@@ -367,7 +366,7 @@ class DependencyResult(object):
 
         # Eval the block
         temp_label = asm_label("Temp")
-        sb = symbexec(new_ira, new_ira.arch.regs.regs_init)
+        sb = symbexec(self._ira, self._ira.arch.regs.regs_init)
         sb.emulbloc(irbloc(temp_label, affects), step=step)
 
         # Return only inputs values (others could be wrongs)