diff options
author | Dan Gohman <gohman@apple.com> | 2008-07-21 18:47:29 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-07-21 18:47:29 +0000 |
commit | 6116a73da420d9b414a34ce2599dc7f6476e23fc (patch) | |
tree | b5ce1e47ac40036911ba71bf2e7d43d4162bf50a /lib/CodeGen/MachineInstr.cpp | |
parent | 318a51149522732ae2e3ec5dda40a917eb7538a0 (diff) |
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.cpp | 2 |
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() { |