aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2007-11-25 23:52:02 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2007-11-25 23:52:02 +0000
commitfd94dd58ffef1be3597ef8cb64f3b1d476d7d5ec (patch)
tree3872188e0f5092b14b75dc012ce032c56bbae25f /lib
parentc54c561c9f7270c055dd7ba75a3a003b771a42d9 (diff)
downloadexternal_llvm-fd94dd58ffef1be3597ef8cb64f3b1d476d7d5ec.zip
external_llvm-fd94dd58ffef1be3597ef8cb64f3b1d476d7d5ec.tar.gz
external_llvm-fd94dd58ffef1be3597ef8cb64f3b1d476d7d5ec.tar.bz2
Remove another leak. Due to some reason AliasSetTracker didn't had any dtor...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44320 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Transforms/Scalar/LICM.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Transforms/Scalar/LICM.cpp b/lib/Transforms/Scalar/LICM.cpp
index 08c0a88..c86b463 100644
--- a/lib/Transforms/Scalar/LICM.cpp
+++ b/lib/Transforms/Scalar/LICM.cpp
@@ -84,6 +84,11 @@ namespace {
}
bool doFinalization() {
+ // Free the values stored in the map
+ for (std::map<Loop *, AliasSetTracker *>::iterator
+ I = LoopToAliasMap.begin(), E = LoopToAliasMap.end(); I != E; ++I)
+ delete I->second;
+
LoopToAliasMap.clear();
return false;
}