projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b336a8
)
Eliminate a memory leak.
author
Evan Cheng
<evan.cheng@apple.com>
Wed, 31 May 2006 07:13:03 +0000
(07:13 +0000)
committer
Evan Cheng
<evan.cheng@apple.com>
Wed, 31 May 2006 07:13:03 +0000
(07:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28585
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
b/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
index cfe5e6b0767d91711e2bf0e261ecc5ffb3a1dcbd..d2820d9632392b8b38ba99bc1c2d546b39065e13 100644
(file)
--- a/
lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
+++ b/
lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
@@
-402,6
+402,7
@@
void ScheduleDAG::EmitNode(SDNode *Node,
DEBUG(std::cerr << "Sched: COMMUTING FAILED!\n");
else {
DEBUG(std::cerr << "Sched: COMMUTED TO: " << *NewMI);
+ delete MI;
MI = NewMI;
}
}