Don't replace the old Ordering object with a new one; just clear()

the old one.

llvm-svn: 106284
This commit is contained in:
Dan Gohman 2010-06-18 15:40:58 +00:00
parent a4f46b3ef8
commit 96ca25eba5
1 changed files with 1 additions and 2 deletions

View File

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