From 6d9b8a06e9d9fece731d045db2f815f261db09c3 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 7 Mar 2009 03:56:20 +0000 Subject: Ensure only CEnv can call compile function directly (fix recursive functions). git-svn-id: http://svn.drobilla.net/resp/tuplr@74 ad02d1e2-f140-0410-9f75-f8b11f17cedd --- llvm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm.cpp') diff --git a/llvm.cpp b/llvm.cpp index 8eeab42..c0c46c9 100644 --- a/llvm.cpp +++ b/llvm.cpp @@ -281,7 +281,7 @@ CValue ASTCall::compile(CEnv& cenv) { AST* c = maybeLookup(cenv, at(0)); - Function* f = dynamic_cast(LLVal(c->compile(cenv))); + Function* f = dynamic_cast(LLVal(cenv.compile(c))); if (!f) throw Error("callee failed to compile", exp.loc); vector params(size() - 1); -- cgit v1.2.1