From: Evan Cheng Date: Mon, 15 Feb 2010 23:16:53 +0000 (+0000) Subject: Fix a memory leak. Patch by Nicolas Geoffray. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f76de0011ff062d8fd6ba81382a7c7c36c9151c2;p=oota-llvm.git 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 --- diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 91e420b2e3f..43cf37ee480 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(); }