From 9cd42575c2dbae6e54fae9da46a4b6b9d2ff61e6 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 23 Dec 2003 22:18:36 +0000 Subject: [PATCH] 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 --- lib/AsmParser/llvmAsmParser.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/AsmParser/llvmAsmParser.y b/lib/AsmParser/llvmAsmParser.y index 357c9ae0ea8..49bf67fc038 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 { -- 2.34.1