commit | ce232957a7412d95d03ff1764b356dd821fd0004 | [log] [tgz] |
---|---|---|
author | Dan Gohman <gohman@apple.com> | Mon Jul 21 18:47:29 2008 +0000 |
committer | Dan Gohman <gohman@apple.com> | Mon Jul 21 18:47:29 2008 +0000 |
tree | b5ce1e47ac40036911ba71bf2e7d43d4162bf50a | |
parent | 8c415938f44e6a7caff1b205b871184ed8e4122b [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
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 @@ // Set parent to null. Parent = 0; + + LeakDetector::addGarbageObject(this); } MachineInstr::~MachineInstr() {