mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-20 04:11:13 +00:00
Remove another leak. Due to some reason AliasSetTracker didn't had any dtor...
llvm-svn: 44320
This commit is contained in:
parent
1536b3f230
commit
14246a2eba
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user