mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 02:33:33 +00:00
Fix a memory leak. Patch by Nicolas Geoffray.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96295 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a95f9ed2b8
commit
f76de0011f
@ -829,6 +829,7 @@ void SelectionDAG::clear() {
|
|||||||
EntryNode.UseList = 0;
|
EntryNode.UseList = 0;
|
||||||
AllNodes.push_back(&EntryNode);
|
AllNodes.push_back(&EntryNode);
|
||||||
Root = getEntryNode();
|
Root = getEntryNode();
|
||||||
|
delete Ordering;
|
||||||
Ordering = new SDNodeOrdering();
|
Ordering = new SDNodeOrdering();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user