summaryrefslogtreecommitdiff
path: root/lib
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
commit6116a73da420d9b414a34ce2599dc7f6476e23fc (patch)
treeb5ce1e47ac40036911ba71bf2e7d43d4162bf50a /lib
parent318a51149522732ae2e3ec5dda40a917eb7538a0 (diff)
downloadllvm-6116a73da420d9b414a34ce2599dc7f6476e23fc.tar.gz
llvm-6116a73da420d9b414a34ce2599dc7f6476e23fc.tar.bz2
llvm-6116a73da420d9b414a34ce2599dc7f6476e23fc.tar.xz
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')
-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 65e5976453..d577582637 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() {