aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGen.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/CodeGen/CodeGen.cc')
-rw-r--r--lib/CodeGen/CodeGen.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CodeGen.cc b/lib/CodeGen/CodeGen.cc
index eba7d77..b81fe2b 100644
--- a/lib/CodeGen/CodeGen.cc
+++ b/lib/CodeGen/CodeGen.cc
@@ -340,7 +340,7 @@ void CodeGen::compile(const std::vector<SourceUnit> &Sources) {
Exceptions->endCatch();
Value *Msg = Builder->CreateGlobalString("Unhandled exception. Program terminated.\n",
"err_unhandled", 0, TheModule.get());
- Builder->CreateCall(PrintfFunc, {Msg});
+ RuntimeChecker->emitStderr(Msg);
Builder->CreateRet(ConstantInt::get(Type::getInt32Ty(*TheContext), 1));
if (verifyModule(*TheModule, &errs())) {