diff options
author | Chris Lattner <sabre@nondot.org> | 2003-12-23 22:18:36 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-12-23 22:18:36 +0000 |
commit | 9cd42575c2dbae6e54fae9da46a4b6b9d2ff61e6 (patch) | |
tree | 6f6457cb3e9d15300d7961e80d14ea16fa711c9b | |
parent | f64d57ada86ea9b8d9a48fff3a856ecf21367312 (diff) |
Right, fix the problem with invoke instructions, not just call instructions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10599 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/AsmParser/llvmAsmParser.y | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AsmParser/llvmAsmParser.y b/lib/AsmParser/llvmAsmParser.y index 357c9ae0ea..49bf67fc03 100644 --- a/lib/AsmParser/llvmAsmParser.y +++ b/lib/AsmParser/llvmAsmParser.y @@ -1626,7 +1626,6 @@ BBTerminatorInst : RET ResolvedVal { // Return with a result... Ty = FunctionType::get($2->get(), ParamTypes, isVarArg); PFTy = PointerType::get(Ty); } - delete $2; Value *V = getVal(PFTy, $3); // Get the function we're calling... @@ -1657,6 +1656,7 @@ BBTerminatorInst : RET ResolvedVal { // Return with a result... $$ = new InvokeInst(V, Normal, Except, *$5); } + delete $2; delete $5; } | UNWIND { |