summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/Analysis/LoopInfo.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/Analysis/LoopInfo.h b/llvm/include/llvm/Analysis/LoopInfo.h
index f8748e49609..c83fb9eca0a 100644
--- a/llvm/include/llvm/Analysis/LoopInfo.h
+++ b/llvm/include/llvm/Analysis/LoopInfo.h
@@ -834,7 +834,7 @@ public:
LI = new LoopInfoBase<BasicBlock>();
}
- ~LoopInfo() { LI->releaseMemory(); }
+ ~LoopInfo() { delete LI; }
/// iterator/begin/end - The interface to the top-level loops in the current
/// function.
OpenPOWER on IntegriCloud