1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

Don't delete values that may still be referenced!

llvm-svn: 4940
This commit is contained in:
Chris Lattner 2002-12-06 04:02:48 +00:00
parent b20f8a3d5d
commit 80ba7cbffc

View File

@ -19,7 +19,6 @@ Init *BitRecTy::convertValue(BitsInit *BI) {
Init *BitRecTy::convertValue(IntInit *II) {
int Val = II->getValue();
if (Val != 0 && Val != 1) return 0; // Only accept 0 or 1 for a bit!
delete II;
return new BitInit(Val != 0);
}
@ -50,7 +49,6 @@ Init *BitsRecTy::convertValue(BitInit *UI) {
//
Init *BitsRecTy::convertValue(IntInit *II) {
int Value = II->getValue();
delete II;
BitsInit *Ret = new BitsInit(Size);
for (unsigned i = 0; i != Size; ++i)