diff options
| author | Ajax <commial@gmail.com> | 2015-11-16 15:51:03 +0100 |
|---|---|---|
| committer | Ajax <commial@gmail.com> | 2015-11-16 15:54:35 +0100 |
| commit | 7975de58a7cea7f230303abfb65e89141b77b9ce (patch) | |
| tree | 7c765c39237d761d20f0750c0ad1b89488d1daa7 | |
| parent | 110d4ae7a17f32730fd996099cacb494fc95e136 (diff) | |
| download | miasm-7975de58a7cea7f230303abfb65e89141b77b9ce.tar.gz miasm-7975de58a7cea7f230303abfb65e89141b77b9ce.zip | |
SemBuilder: update `ir.get_next_label` API
| -rw-r--r-- | miasm2/core/sembuilder.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/miasm2/core/sembuilder.py b/miasm2/core/sembuilder.py index 01b815e3..7592d158 100644 --- a/miasm2/core/sembuilder.py +++ b/miasm2/core/sembuilder.py @@ -123,7 +123,8 @@ class SemBuilder(object): @staticmethod def _create_labels(): """Return the AST standing for label creations""" - out = ast.parse("lbl_end = ExprId(ir.get_next_instr(instr))").body + lbl_end = "lbl_end = ExprId(ir.get_next_label(instr), instr.mode)" + out = ast.parse(lbl_end).body out += ast.parse("lbl_if = ExprId(ir.gen_label())").body return out |