Eliminate a memory leak.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28585 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Evan Cheng 2006-05-31 07:13:03 +00:00
parent 7b336a8746
commit 16eee25c66

View File

@ -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;
}
}