about summary refs log tree commit diff stats
path: root/miasm2/jitter/llvmconvert.py
diff options
context:
space:
mode:
authorserpilliere <serpilliere@users.noreply.github.com>2019-01-16 08:02:05 +0100
committerGitHub <noreply@github.com>2019-01-16 08:02:05 +0100
commitddeca6ce968cb4e56d10b31b169743faf07b7a13 (patch)
treee9236423b55039d74fe81becd2390aab7691603a /miasm2/jitter/llvmconvert.py
parenteb9b59dd4b4805dee549b69f024019f9d25b2fa5 (diff)
parent21448f0e3b0df0ba44d011c4c04af3ea12ca354d (diff)
downloadmiasm-ddeca6ce968cb4e56d10b31b169743faf07b7a13.tar.gz
miasm-ddeca6ce968cb4e56d10b31b169743faf07b7a13.zip
Merge pull request #943 from commial/fix/reorg-python-jitter
Rewrite Python jitter
Diffstat (limited to '')
-rw-r--r--miasm2/jitter/llvmconvert.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/miasm2/jitter/llvmconvert.py b/miasm2/jitter/llvmconvert.py
index 37ce8d52..17112528 100644
--- a/miasm2/jitter/llvmconvert.py
+++ b/miasm2/jitter/llvmconvert.py
@@ -1297,7 +1297,7 @@ class LLVMFunction(object):
             # Update PC for dump_gpregs
             PC = self.llvm_context.PC
             t_size = LLVMType.IntType(PC.size)
-            dst = self.builder.zext(t_size(pc_value), LLVMType.IntType(PC.size))
+            dst = self.builder.zext(t_size(pc_value), t_size)
             self.affect(dst, PC)
 
             fc_ptr = self.mod.get_global(self.llvm_context.logging_func)