aboutsummaryrefslogtreecommitdiffstats
path: root/src/llvm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/llvm.cpp')
-rw-r--r--src/llvm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/llvm.cpp b/src/llvm.cpp
index eabe508..b6dea5d 100644
--- a/src/llvm.cpp
+++ b/src/llvm.cpp
@@ -417,7 +417,7 @@ LLVMEngine::compileMatch(CEnv& cenv, const ATuple* match)
const AST* pat = *i++;
const AST* body = *i++;
const ASymbol* sym = pat->to_tuple()->head()->as_symbol();
- const AType* patT = tup<AType>(Cursor(), const_cast<ASymbol*>(sym), 0);
+ const AType* patT = new AType(sym, 0, Cursor());
Value* typeV = llVal(resp_compile(cenv, patT));
Value* condV = engine->builder.CreateICmp(CmpInst::ICMP_EQ, rtti, typeV);