Now that the MachineInstr leaks are fixed, enable leak checking
authorDan Gohman <gohman@apple.com>
Mon, 21 Jul 2008 18:47:29 +0000 (18:47 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 21 Jul 2008 18:47:29 +0000 (18:47 +0000)
in the MachineInstr clone code.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53868 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/MachineInstr.cpp

index 65e59764530a8e38ba08ddef0e7d755f17eef987..d57758263700233a45f093869b65b00d14853475 100644 (file)
@@ -328,6 +328,8 @@ MachineInstr::MachineInstr(MachineFunction &MF, const MachineInstr &MI)
 
   // Set parent to null.
   Parent = 0;
+
+  LeakDetector::addGarbageObject(this);
 }
 
 MachineInstr::~MachineInstr() {