Fix a memory leak. Patch by Nicolas Geoffray.

llvm-svn: 96295
This commit is contained in:
Evan Cheng 2010-02-15 23:16:53 +00:00
parent 5b80f0d67f
commit 3f08464a1a
1 changed files with 1 additions and 0 deletions

View File

@ -829,6 +829,7 @@ void SelectionDAG::clear() {
EntryNode.UseList = 0;
AllNodes.push_back(&EntryNode);
Root = getEntryNode();
delete Ordering;
Ordering = new SDNodeOrdering();
}