[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp

Evan Cheng evan.cheng at apple.com
Wed May 31 00:13:21 PDT 2006



Changes in directory llvm/lib/CodeGen/SelectionDAG:

ScheduleDAG.cpp updated: 1.93 -> 1.94
---
Log message:

Eliminate a memory leak.

---
Diffs of the changes:  (+1 -0)

 ScheduleDAG.cpp |    1 +
 1 files changed, 1 insertion(+)


Index: llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp:1.93 llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp:1.94
--- llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp:1.93	Thu May 18 15:42:07 2006
+++ llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp	Wed May 31 02:13:03 2006
@@ -402,6 +402,7 @@
         DEBUG(std::cerr << "Sched: COMMUTING FAILED!\n");
       else {
         DEBUG(std::cerr << "Sched: COMMUTED TO: " << *NewMI);
+        delete MI;
         MI = NewMI;
       }
     }






More information about the llvm-commits mailing list