[llvm-commits] CVS: llvm/lib/AsmParser/llvmAsmParser.y
Chris Lattner
lattner at cs.uiuc.edu
Tue Dec 23 14:40:01 PST 2003
Changes in directory llvm/lib/AsmParser:
llvmAsmParser.y updated: 1.144 -> 1.145
---
Log message:
Do not delete the type holder until after the call instruction has been
constructed!
---
Diffs of the changes: (+1 -1)
Index: llvm/lib/AsmParser/llvmAsmParser.y
diff -u llvm/lib/AsmParser/llvmAsmParser.y:1.144 llvm/lib/AsmParser/llvmAsmParser.y:1.145
--- llvm/lib/AsmParser/llvmAsmParser.y:1.144 Tue Dec 23 14:05:15 2003
+++ llvm/lib/AsmParser/llvmAsmParser.y Tue Dec 23 14:39:17 2003
@@ -1828,7 +1828,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...
@@ -1858,6 +1857,7 @@
$$ = new CallInst(V, *$5);
}
+ delete $2;
delete $5;
}
| MemoryInst {
More information about the llvm-commits
mailing list