summaryrefslogtreecommitdiff
path: root/support
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-12-06 04:02:48 +0000
committerChris Lattner <sabre@nondot.org>2002-12-06 04:02:48 +0000
commitcdbfa422cd7aadd7f6c7160133bb264c26f504ce (patch)
tree59c3b97194d0b2c0f6393a8302b5ff3dc7eb7c03 /support
parentade0de91236a5967e323a810b21bda4b0425642f (diff)
downloadllvm-cdbfa422cd7aadd7f6c7160133bb264c26f504ce.tar.gz
llvm-cdbfa422cd7aadd7f6c7160133bb264c26f504ce.tar.bz2
llvm-cdbfa422cd7aadd7f6c7160133bb264c26f504ce.tar.xz
Don't delete values that may still be referenced!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4940 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'support')
-rw-r--r--support/tools/TableGen/Record.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/support/tools/TableGen/Record.cpp b/support/tools/TableGen/Record.cpp
index d48d987a85..b33e5e774b 100644
--- a/support/tools/TableGen/Record.cpp
+++ b/support/tools/TableGen/Record.cpp
@@ -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)