projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Remove a leak. Destroy LoopInfoBase object. releaseMemory() is actually called in...
[oota-llvm.git]
/
include
/
llvm
/
Analysis
/
LoopInfo.h
diff --git
a/include/llvm/Analysis/LoopInfo.h
b/include/llvm/Analysis/LoopInfo.h
index f8748e496096a2dcb0c5f64e78abf22b388071e0..c83fb9eca0abb9e8cd161622b11e9a555e8a75c1 100644
(file)
--- a/
include/llvm/Analysis/LoopInfo.h
+++ b/
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.