mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-24 06:30:19 +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;
|
||||
AllNodes.push_back(&EntryNode);
|
||||
Root = getEntryNode();
|
||||
delete Ordering;
|
||||
Ordering = new SDNodeOrdering();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user