1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 20:12:56 +02:00

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 d3b13d1a68
commit 6670a7edea

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();
}