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
This commit is contained in:
Anton Korobeynikov 2007-11-25 23:52:02 +00:00
parent c54c561c9f
commit fd94dd58ff
2 changed files with 6 additions and 0 deletions

View File

@ -263,6 +263,7 @@ public:
/// the specified alias analysis object to disambiguate load and store
/// addresses.
explicit AliasSetTracker(AliasAnalysis &aa) : AA(aa) {}
~AliasSetTracker() { clear(); }
/// add methods - These methods are used to add different types of
/// instructions to the alias sets. Adding a new instruction can result in

View File

@ -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;
}