about summary refs log tree commit diff stats
path: root/miasm2/jitter/codegen.py
diff options
context:
space:
mode:
Diffstat (limited to 'miasm2/jitter/codegen.py')
-rw-r--r--miasm2/jitter/codegen.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/miasm2/jitter/codegen.py b/miasm2/jitter/codegen.py
index 10140fd2..a709d5ec 100644
--- a/miasm2/jitter/codegen.py
+++ b/miasm2/jitter/codegen.py
@@ -132,7 +132,8 @@ class CGen(object):
         @dst2index: LocKey -> uniq value
         @loc_key: LocKey istance"""
 
-        dst2index[loc_key] = len(dst2index)
+        if loc_key not in dst2index:
+            dst2index[loc_key] = len(dst2index)
 
     def assignblk_to_irbloc(self, instr, assignblk):
         """