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
diff --git a/lib/AsmParser/llvmAsmParser.y b/lib/AsmParser/llvmAsmParser.y
index 357c9ae..49bf67f 100644
--- a/lib/AsmParser/llvmAsmParser.y
+++ b/lib/AsmParser/llvmAsmParser.y
@@ -1626,7 +1626,6 @@
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 @@
$$ = new InvokeInst(V, Normal, Except, *$5);
}
+ delete $2;
delete $5;
}
| UNWIND {