aboutsummaryrefslogtreecommitdiffstats
path: root/llvm.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-03-07 02:28:09 +0000
committerDavid Robillard <d@drobilla.net>2009-03-07 02:28:09 +0000
commit240b9f437bf87e98ca2c4ad8f242e86fca7f24e5 (patch)
treec4f9cb64594d84318b87b3fb3447f286e6bc303f /llvm.cpp
parent76a2dc8afc2e59e2927cacb7270e28943ec9841d (diff)
downloadresp-240b9f437bf87e98ca2c4ad8f242e86fca7f24e5.tar.gz
resp-240b9f437bf87e98ca2c4ad8f242e86fca7f24e5.tar.bz2
resp-240b9f437bf87e98ca2c4ad8f242e86fca7f24e5.zip
Oops.
git-svn-id: http://svn.drobilla.net/resp/tuplr@70 ad02d1e2-f140-0410-9f75-f8b11f17cedd
Diffstat (limited to 'llvm.cpp')
-rw-r--r--llvm.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm.cpp b/llvm.cpp
index 4db9a2a..daaf4f9 100644
--- a/llvm.cpp
+++ b/llvm.cpp
@@ -293,7 +293,7 @@ CValue
ASTCall::compile(CEnv& cenv)
{
AST* c = maybeLookup(cenv, at(0));
- Function* f = dynamic_cast<Function*>(LLVal(cenv.compile(c)));
+ Function* f = dynamic_cast<Function*>(LLVal(c->compile(cenv)));
if (!f) throw Error("callee failed to compile", exp.loc);
vector<Value*> params(size() - 1);
@@ -408,9 +408,9 @@ ASTPrimitive::compile(CEnv& cenv)
AType*
ASTConsCall::functionType(CEnv& cenv)
{
- ASTTuple* protTypes = new ASTTuple(cenv.tenv.type(at(1)), cenv.tenv.type(at(2)), NULL);
+ ASTTuple* protTypes = new ASTTuple(loc, cenv.tenv.type(at(1)), cenv.tenv.type(at(2)), 0);
AType* cellType = new AType(loc,
- cenv.penv.sym("Pair"), cenv.tenv.type(at(1)), cenv.tenv.type(at(2)));
+ cenv.penv.sym("Pair"), cenv.tenv.type(at(1)), cenv.tenv.type(at(2)), 0);
return new AType(at(0)->loc, cenv.penv.sym("Fn"), protTypes, cellType, 0);
}
@@ -423,7 +423,7 @@ ASTConsCall::lift(CEnv& cenv)
ASTCall::lift(cenv);
- ASTTuple* prot = new ASTTuple(at(1), at(2), NULL);
+ ASTTuple* prot = new ASTTuple(loc, at(1), at(2), 0);
vector<const Type*> types;
size_t sz = 0;