about summary refs log tree commit diff stats
path: root/miasm2/jitter/llvmconvert.py
diff options
context:
space:
mode:
authorCamille Mougey <commial@gmail.com>2018-09-28 09:30:23 +0200
committerGitHub <noreply@github.com>2018-09-28 09:30:23 +0200
commit9c8596646ba6150694deb984f25aaad73d2c7125 (patch)
tree35e52073cea394d3e66dfa89a53d81987869abe9 /miasm2/jitter/llvmconvert.py
parenta5ab3c338e09da5c3e2fe871f1f13e6e37464fa1 (diff)
parent846d316efab8b8b654eee58b952cdf1ba2d3eb42 (diff)
downloadmiasm-9c8596646ba6150694deb984f25aaad73d2c7125.tar.gz
miasm-9c8596646ba6150694deb984f25aaad73d2c7125.zip
Merge pull request #852 from serpilliere/fix_lgtm_2
Code cleaning: lgtm.com
Diffstat (limited to '')
-rw-r--r--miasm2/jitter/llvmconvert.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/miasm2/jitter/llvmconvert.py b/miasm2/jitter/llvmconvert.py
index 1c2b453b..3ef45e60 100644
--- a/miasm2/jitter/llvmconvert.py
+++ b/miasm2/jitter/llvmconvert.py
@@ -398,7 +398,7 @@ class LLVMContext_JIT(LLVMContext):
             builder.store(value, ret)
             value_ptr = builder.bitcast(ret, llvm_ir.IntType(8).as_pointer())
 
-            ret = builder.call(
+            builder.call(
                 fc_ptr,
                 [
                     func.local_vars["jitcpu"],
@@ -581,7 +581,6 @@ class LLVMFunction():
         ptr = builder.gep(self.local_vars["vmcpu"],
                           [llvm_ir.Constant(LLVMType.IntType(),
                                             offset)])
-        regs = self.llvm_context.ir_arch.arch.regs
         pointee_type = LLVMType.IntType(expr.size)
         ptr_casted = builder.bitcast(ptr,
                                      llvm_ir.PointerType(pointee_type))