diff options
| author | Camille Mougey <commial@gmail.com> | 2018-08-29 16:27:06 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-08-29 16:27:06 +0200 |
| commit | 7c0d412120abbcfaa51fdb1dd231a27595c873ed (patch) | |
| tree | 43226fee7292a9a4912ea1d3d0d9728d2aefbcfd /miasm2/jitter/codegen.py | |
| parent | 86e458d488b02bf3479f9c5a42bb56de23c3ea80 (diff) | |
| parent | 253547e35343aed844e7bcb033c610409fcbd21e (diff) | |
| download | miasm-7c0d412120abbcfaa51fdb1dd231a27595c873ed.tar.gz miasm-7c0d412120abbcfaa51fdb1dd231a27595c873ed.zip | |
Merge pull request #828 from serpilliere/fix_lgtm_1
Code cleaning: lgtm.com
Diffstat (limited to 'miasm2/jitter/codegen.py')
| -rw-r--r-- | miasm2/jitter/codegen.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/miasm2/jitter/codegen.py b/miasm2/jitter/codegen.py index 69e83de5..ff6c1485 100644 --- a/miasm2/jitter/codegen.py +++ b/miasm2/jitter/codegen.py @@ -336,26 +336,17 @@ class CGen(object): offset = int(expr) loc_key = self.ir_arch.loc_db.get_or_create_offset_location(offset) self.add_label_index(dst2index, loc_key) - - value, int_size = int_size_to_bn(offset, 64) out = hex(offset) - return ("%s" % dst2index[loc_key], out) if expr.is_loc(): loc_key = expr.loc_key offset = self.ir_arch.loc_db.get_location_offset(expr.loc_key) if offset is not None: self.add_label_index(dst2index, loc_key) - - value, int_size = int_size_to_bn(offset, 64) out = hex(offset) - return ("%s" % dst2index[loc_key], out) self.add_label_index(dst2index, loc_key) - - value, int_size = int_size_to_bn(0, 64) out = hex(0) - return ("%s" % dst2index[loc_key], out) dst2index[expr] = -1 return ("-1", self.id_to_c(expr)) |