aboutsummaryrefslogtreecommitdiffstats
path: root/src/llvm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/llvm.cpp')
-rw-r--r--src/llvm.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/llvm.cpp b/src/llvm.cpp
index 1477917..d022413 100644
--- a/src/llvm.cpp
+++ b/src/llvm.cpp
@@ -114,7 +114,9 @@ struct LLVMEngine : public Engine {
cprot.push_back(llType(at));
}
- THROW_IF(!llType(retT), Cursor(), "return has non-concrete type");
+ THROW_IF(!llType(retT), Cursor(),
+ (format("return has non-concrete type `%1%'") % retT->str()).str());
+
FunctionType* fT = FunctionType::get(llType(retT), cprot, false);
Function* f = Function::Create(fT, linkage, name, module);