diff options
Diffstat (limited to 'src/llvm.cpp')
-rw-r--r-- | src/llvm.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/llvm.cpp b/src/llvm.cpp index 9ca6e46..6aedd93 100644 --- a/src/llvm.cpp +++ b/src/llvm.cpp @@ -113,7 +113,7 @@ struct LLVMEngine : public Engine { } return PointerType::get(FunctionType::get(llType(retT), cprot, false), 0); - } else if (t->kind == AType::EXPR && t->head()->str() == "Tup") { + } else if (t->kind == AType::EXPR && isupper(t->head()->str()[0])) { vector<const Type*> ctypes; for (AType::const_iterator i = t->begin() + 1; i != t->end(); ++i) { const Type* lt = llType((*i)->to<const AType*>()); |