aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2010-02-15 23:16:53 +0000
committerEvan Cheng <evan.cheng@apple.com>2010-02-15 23:16:53 +0000
commitf76de0011ff062d8fd6ba81382a7c7c36c9151c2 (patch)
tree72f1b57ac727ba571584cfb202564b080d0dddd1 /lib/CodeGen
parenta95f9ed2b8348e91250a22c1aadf20637bcfcb3e (diff)
downloadexternal_llvm-f76de0011ff062d8fd6ba81382a7c7c36c9151c2.zip
external_llvm-f76de0011ff062d8fd6ba81382a7c7c36c9151c2.tar.gz
external_llvm-f76de0011ff062d8fd6ba81382a7c7c36c9151c2.tar.bz2
Fix a memory leak. Patch by Nicolas Geoffray.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96295 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAG.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 91e420b..43cf37e 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -829,6 +829,7 @@ void SelectionDAG::clear() {
EntryNode.UseList = 0;
AllNodes.push_back(&EntryNode);
Root = getEntryNode();
+ delete Ordering;
Ordering = new SDNodeOrdering();
}