diff options
| author | Camille Mougey <commial@gmail.com> | 2016-09-05 07:33:03 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-09-05 07:33:03 +0200 |
| commit | 297ab9469e72145e1fd43a648d42e52dd3ce91c0 (patch) | |
| tree | 44720718f1f9cd3bd72ac571c0f3b12f53a46f0a | |
| parent | e2f41c18846d60f5223a873039a5281724f290c1 (diff) | |
| parent | dcb722293bbd3b94fe44775012ba2805d3830d4c (diff) | |
| download | miasm-297ab9469e72145e1fd43a648d42e52dd3ce91c0.tar.gz miasm-297ab9469e72145e1fd43a648d42e52dd3ce91c0.zip | |
Merge pull request #419 from serpilliere/fix_codegen
Jitter/codegen: fix irdst generation
Diffstat (limited to '')
| -rw-r--r-- | miasm2/jitter/codegen.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/miasm2/jitter/codegen.py b/miasm2/jitter/codegen.py index 7630a2ef..c5f28b9f 100644 --- a/miasm2/jitter/codegen.py +++ b/miasm2/jitter/codegen.py @@ -307,14 +307,10 @@ class CGen(object): return ("%s" % dst2index[label], "0") - elif (isinstance(expr, m2_expr.ExprId) or - isinstance(expr, m2_expr.ExprMem) or - isinstance(expr, m2_expr.ExprSlice)): + else: dst2index[expr] = -1 return ("-1", self.id_to_c(expr)) - else: - raise RuntimeError("Unsupported IRDst type %s" % expr) def gen_assignblk_dst(self, dst): dst2index = {} |