forked from OSchip/llvm-project
Fix a memory leak. Patch by Nicolas Geoffray.
llvm-svn: 96295
This commit is contained in:
parent
5b80f0d67f
commit
3f08464a1a
|
@ -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