From 8f718c75f004e1b1e8a1094205055b1108193997 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Mon, 21 Jul 2008 18:47:29 +0000 Subject: [PATCH] Now that the MachineInstr leaks are fixed, enable leak checking in the MachineInstr clone code. llvm-svn: 53868 --- lib/CodeGen/MachineInstr.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/CodeGen/MachineInstr.cpp b/lib/CodeGen/MachineInstr.cpp index 65e59764530..d5775826370 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() {