aboutsummaryrefslogtreecommitdiffstats
path: root/lib/AsmParser/llvmAsmParser.y
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-12-23 20:39:17 +0000
committerChris Lattner <sabre@nondot.org>2003-12-23 20:39:17 +0000
commitf64d57ada86ea9b8d9a48fff3a856ecf21367312 (patch)
tree8fbac29ce450e9aea0af4b6d17b0d9acecbce1b7 /lib/AsmParser/llvmAsmParser.y
parent368751f2b721c09f827d73b929ab87969514cc07 (diff)
downloadexternal_llvm-f64d57ada86ea9b8d9a48fff3a856ecf21367312.zip
external_llvm-f64d57ada86ea9b8d9a48fff3a856ecf21367312.tar.gz
external_llvm-f64d57ada86ea9b8d9a48fff3a856ecf21367312.tar.bz2
Do not delete the type holder until after the call instruction has been
constructed! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10598 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AsmParser/llvmAsmParser.y')
-rw-r--r--lib/AsmParser/llvmAsmParser.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AsmParser/llvmAsmParser.y b/lib/AsmParser/llvmAsmParser.y
index 8049dc8..357c9ae 100644
--- a/lib/AsmParser/llvmAsmParser.y
+++ b/lib/AsmParser/llvmAsmParser.y
@@ -1828,7 +1828,6 @@ InstVal : ArithmeticOps Types ValueRef ',' ValueRef {
Ty = FunctionType::get($2->get(), ParamTypes, isVarArg);
PFTy = PointerType::get(Ty);
}
- delete $2;
Value *V = getVal(PFTy, $3); // Get the function we're calling...
@@ -1858,6 +1857,7 @@ InstVal : ArithmeticOps Types ValueRef ',' ValueRef {
$$ = new CallInst(V, *$5);
}
+ delete $2;
delete $5;
}
| MemoryInst {