summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-06-18 15:40:58 +0000
committerDan Gohman <gohman@apple.com>2010-06-18 15:40:58 +0000
commit96ca25eba58f66624c0ade7f9eb98bd5e707e2bf (patch)
tree282db584a9f969050e92a11328e722d5289e3c15 /llvm/lib
parenta4f46b3ef8a195a0f14168120b93c93fafb9a0bc (diff)
downloadbcm5719-llvm-96ca25eba58f66624c0ade7f9eb98bd5e707e2bf.tar.gz
bcm5719-llvm-96ca25eba58f66624c0ade7f9eb98bd5e707e2bf.zip
Don't replace the old Ordering object with a new one; just clear()
the old one. llvm-svn: 106284
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 91df1ab7b44..c421e852b87 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -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();
}
OpenPOWER on IntegriCloud