about summary refs log tree commit diff stats
path: root/miasm2/core/parse_asm.py
diff options
context:
space:
mode:
authorAjax <commial@gmail.com>2016-01-11 15:55:57 +0100
committerAjax <commial@gmail.com>2016-01-11 15:59:30 +0100
commitf921e8f5542bb6064071924595216417a194dbea (patch)
treef15b66eff5c7893a4a434cfc5e5c51bca0b0020f /miasm2/core/parse_asm.py
parent6b09332775857805741be7ef6b1fc98e189f4d5b (diff)
downloadmiasm-f921e8f5542bb6064071924595216417a194dbea.tar.gz
miasm-f921e8f5542bb6064071924595216417a194dbea.zip
AsmConstraint: ensure label is always an asm_label
Diffstat (limited to 'miasm2/core/parse_asm.py')
-rw-r--r--miasm2/core/parse_asm.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/miasm2/core/parse_asm.py b/miasm2/core/parse_asm.py
index 840b88db..5437ca22 100644
--- a/miasm2/core/parse_asm.py
+++ b/miasm2/core/parse_asm.py
@@ -305,7 +305,7 @@ def parse_txt(mnemo, attrib, txt, symbol_pool=None):
                             continue
                         if dst in mnemo.regs.all_regs_ids:
                             continue
-                        cur_block.addto(asmbloc.asm_constraint(dst, C_TO))
+                        cur_block.addto(asmbloc.asm_constraint(dst.name, C_TO))
 
                 if not line.splitflow():
                     block_to_nlink = None