diff options
Diffstat (limited to '')
| -rw-r--r-- | miasm2/arch/arm/arch.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/miasm2/arch/arm/arch.py b/miasm2/arch/arm/arch.py index 0e58008d..9a19d03b 100644 --- a/miasm2/arch/arm/arch.py +++ b/miasm2/arch/arm/arch.py @@ -181,11 +181,7 @@ int_or_expr = base_expr def ast_id2expr(t): - if not t in mn_arm.regs.all_regs_ids_byname: - r = ExprId(asm_label(t)) - else: - r = mn_arm.regs.all_regs_ids_byname[t] - return r + return mn_arm.regs.all_regs_ids_byname.get(t, t) def ast_int2expr(a): |