about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAjax <commial@gmail.com>2016-12-20 16:45:20 +0100
committerAjax <commial@gmail.com>2017-01-04 17:14:55 +0100
commit48f430e3684881f737d1faf48f4f77176d4e6b2e (patch)
tree0df8befb1c9bbf5a30a99eacb968d12f1a8ed643
parent1268051fbbb8b099487bcf4332b7ccc879a11c6e (diff)
downloadmiasm-48f430e3684881f737d1faf48f4f77176d4e6b2e.tar.gz
miasm-48f430e3684881f737d1faf48f4f77176d4e6b2e.zip
Alloca at end may occurs after a jump -> fix
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 55043964..7374ac6f 100644
--- a/miasm2/jitter/llvmconvert.py
+++ b/miasm2/jitter/llvmconvert.py
@@ -312,7 +312,7 @@ class LLVMFunction():
         "Create an alloca instruction at the beginning of the current fc"
         builder = self.builder
         current_bbl = builder.basic_block
-        builder.position_at_end(self.entry_bbl)
+        builder.position_at_start(self.entry_bbl)
 
         ret = builder.alloca(var_type)
         builder.position_at_end(current_bbl)