aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/llvm.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/llvm.cpp b/src/llvm.cpp
index e75460c..39cf2d0 100644
--- a/src/llvm.cpp
+++ b/src/llvm.cpp
@@ -182,7 +182,7 @@ struct LLVMEngine : public Engine {
Module* module;
ExecutionEngine* engine;
IRBuilder<> builder;
- CFunction alloc;
+ Function* alloc;
ExistingModuleProvider emp;
FunctionPassManager opt;
};
@@ -354,7 +354,7 @@ AFn::liftCall(CEnv& cenv, const AType& argsT)
StructType* frameT = StructType::get(types, false);
Value* tag = ConstantInt::get(Type::Int8Ty, GC::TAG_FRAME);
Value* frameSize = ConstantInt::get(Type::Int32Ty, s / 8);
- Value* frame = builder.CreateCall2(llVal(cenv.alloc), frameSize, tag, "frame");
+ Value* frame = builder.CreateCall2(llEngine(cenv)->alloc, frameSize, tag, "frame");
Value* framePtr = builder.CreateBitCast(frame, PointerType::get(frameT, 0));
// Bind parameter values in stack frame