1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00

Eliminate a memory leak.

llvm-svn: 28585
This commit is contained in:
Evan Cheng 2006-05-31 07:13:03 +00:00
parent bbc183c90e
commit 6a09baaff4

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