summaryrefslogtreecommitdiff
path: root/MLKLLVMCompiler.mm
diff options
context:
space:
mode:
authorMatthias Benkard <mulk@minimulk.mst-plus>2008-09-28 21:35:04 +0200
committerMatthias Benkard <mulk@minimulk.mst-plus>2008-09-28 21:35:04 +0200
commit45e00ec3f4dd6289cd14021ef1ee35568b4928c6 (patch)
tree8ec0edf60a5d47754ca79ae75be0b78f927d4448 /MLKLLVMCompiler.mm
parent90a3e20fcfe07c24533cce14e1d1dd8a5d611ed6 (diff)
LLVM compiler: Simplify allocation of closures.
Diffstat (limited to 'MLKLLVMCompiler.mm')
-rw-r--r--MLKLLVMCompiler.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/MLKLLVMCompiler.mm b/MLKLLVMCompiler.mm
index 4a1095e..ae9773b 100644
--- a/MLKLLVMCompiler.mm
+++ b/MLKLLVMCompiler.mm
@@ -615,7 +615,7 @@ static Constant
builder.SetInsertPoint (outerBlock);
NSArray *freeVariables = [[self freeVariables] allObjects];
- Value *closure_data = builder.CreateMalloc (PointerTy,
+ Value *closure_data = builder.CreateAlloca (PointerTy,
ConstantInt::get(Type::Int32Ty,
(uint32_t)[freeVariables count],
false));