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:
parent
bbc183c90e
commit
6a09baaff4
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user