diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2010-02-15 23:16:53 +0000 |
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2010-02-15 23:16:53 +0000 |
| commit | 3f08464a1a4081b1865f093663e1c18249a35faf (patch) | |
| tree | 0f7485167f4c76fb998e023b5a193a1a74747714 /llvm/lib | |
| parent | 5b80f0d67fb6c92829a160575fce2f09f7031ebf (diff) | |
| download | bcm5719-llvm-3f08464a1a4081b1865f093663e1c18249a35faf.tar.gz bcm5719-llvm-3f08464a1a4081b1865f093663e1c18249a35faf.zip | |
Fix a memory leak. Patch by Nicolas Geoffray.
llvm-svn: 96295
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 91e420b2e3f..43cf37ee480 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/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(); } |

