1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 19:42:54 +02:00

Do not delete the type holder until after the call instruction has been

constructed!

llvm-svn: 10598
This commit is contained in:
Chris Lattner 2003-12-23 20:39:17 +00:00
parent 207cf0a20d
commit c1dd02538a

View File

@ -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 {