aboutsummaryrefslogtreecommitdiffstats
path: root/tuplr_llvm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tuplr_llvm.cpp')
-rw-r--r--tuplr_llvm.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tuplr_llvm.cpp b/tuplr_llvm.cpp
index b5fb862..5ff570e 100644
--- a/tuplr_llvm.cpp
+++ b/tuplr_llvm.cpp
@@ -245,7 +245,7 @@ ASTClosure::lift(CEnv& cenv)
CValue retVal = cenv.compile(at(2));
cenv.engine.builder.CreateRet(LLVal(retVal)); // Finish function
cenv.optimise(LLFunc(f));
- funcs.insert(type, f);
+ funcs.push_back(make_pair(type, f));
} catch (Error& e) {
f->eraseFromParent(); // Error reading body, remove function
throw e;
@@ -461,7 +461,7 @@ ASTConsCall::lift(CEnv& cenv)
builder.CreateRet(cell);
cenv.optimise(func);
- funcs.insert(funcType, func);
+ funcs.push_back(make_pair(funcType, func));
}
CValue