aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/MachineInstr.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-07-21 18:47:29 +0000
committerDan Gohman <gohman@apple.com>2008-07-21 18:47:29 +0000
commitce232957a7412d95d03ff1764b356dd821fd0004 (patch)
treeb5ce1e47ac40036911ba71bf2e7d43d4162bf50a /lib/CodeGen/MachineInstr.cpp
parent8c415938f44e6a7caff1b205b871184ed8e4122b (diff)
downloadexternal_llvm-ce232957a7412d95d03ff1764b356dd821fd0004.zip
external_llvm-ce232957a7412d95d03ff1764b356dd821fd0004.tar.gz
external_llvm-ce232957a7412d95d03ff1764b356dd821fd0004.tar.bz2
Now that the MachineInstr leaks are fixed, enable leak checking
in the MachineInstr clone code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53868 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineInstr.cpp')
-rw-r--r--lib/CodeGen/MachineInstr.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/MachineInstr.cpp b/lib/CodeGen/MachineInstr.cpp
index 65e5976..d577582 100644
--- a/lib/CodeGen/MachineInstr.cpp
+++ b/lib/CodeGen/MachineInstr.cpp
@@ -328,6 +328,8 @@ MachineInstr::MachineInstr(MachineFunction &MF, const MachineInstr &MI)
// Set parent to null.
Parent = 0;
+
+ LeakDetector::addGarbageObject(this);
}
MachineInstr::~MachineInstr() {