[llvm-commits] [llvm] r106284 - /llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
Dan Gohman
gohman at apple.com
Fri Jun 18 08:40:59 PDT 2010
Author: djg
Date: Fri Jun 18 10:40:58 2010
New Revision: 106284
URL: http://llvm.org/viewvc/llvm-project?rev=106284&view=rev
Log:
Don't replace the old Ordering object with a new one; just clear()
the old one.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp?rev=106284&r1=106283&r2=106284&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp Fri Jun 18 10:40:58 2010
@@ -833,8 +833,7 @@
EntryNode.UseList = 0;
AllNodes.push_back(&EntryNode);
Root = getEntryNode();
- delete Ordering;
- Ordering = new SDNodeOrdering();
+ Ordering->clear();
DbgInfo->clear();
}
More information about the llvm-commits
mailing list