aboutsummaryrefslogtreecommitdiffstats
path: root/llvm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm.cpp')
-rw-r--r--llvm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm.cpp b/llvm.cpp
index 4fa9ca9..1f4c58e 100644
--- a/llvm.cpp
+++ b/llvm.cpp
@@ -254,7 +254,7 @@ AFn::liftCall(CEnv& cenv, const AType& argsT)
}
// Write function declaration
- const string name = (this->name == "") ? cenv.gensym("_fn") : this->name;
+ const string name = (this->name == "") ? cenv.penv.gensymstr("_fn") : this->name;
Function* f = llFunc(cenv.engine()->startFunction(cenv, name,
thisType->at(thisType->size()-1)->to<AType*>(),
*protT, argNames));