diff options
Diffstat (limited to 'src/llvm.cpp')
-rw-r--r-- | src/llvm.cpp | 4 |
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); |