mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
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:
parent
7b336a8746
commit
16eee25c66
@ -402,6 +402,7 @@ void ScheduleDAG::EmitNode(SDNode *Node,
|
|||||||
DEBUG(std::cerr << "Sched: COMMUTING FAILED!\n");
|
DEBUG(std::cerr << "Sched: COMMUTING FAILED!\n");
|
||||||
else {
|
else {
|
||||||
DEBUG(std::cerr << "Sched: COMMUTED TO: " << *NewMI);
|
DEBUG(std::cerr << "Sched: COMMUTED TO: " << *NewMI);
|
||||||
|
delete MI;
|
||||||
MI = NewMI;
|
MI = NewMI;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user