[llvm-commits] [llvm] r53868 - /llvm/trunk/lib/CodeGen/MachineInstr.cpp

Dan Gohman gohman at apple.com
Mon Jul 21 11:47:29 PDT 2008


Author: djg
Date: Mon Jul 21 13:47:29 2008
New Revision: 53868

URL: http://llvm.org/viewvc/llvm-project?rev=53868&view=rev
Log:
Now that the MachineInstr leaks are fixed, enable leak checking
in the MachineInstr clone code.

Modified:
    llvm/trunk/lib/CodeGen/MachineInstr.cpp

Modified: llvm/trunk/lib/CodeGen/MachineInstr.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineInstr.cpp?rev=53868&r1=53867&r2=53868&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/MachineInstr.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineInstr.cpp Mon Jul 21 13:47:29 2008
@@ -328,6 +328,8 @@
 
   // Set parent to null.
   Parent = 0;
+
+  LeakDetector::addGarbageObject(this);
 }
 
 MachineInstr::~MachineInstr() {





More information about the llvm-commits mailing list