mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-02 07:32:52 +00:00
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:
parent
c54c561c9f
commit
fd94dd58ff
@ -263,6 +263,7 @@ public:
|
|||||||
/// the specified alias analysis object to disambiguate load and store
|
/// the specified alias analysis object to disambiguate load and store
|
||||||
/// addresses.
|
/// addresses.
|
||||||
explicit AliasSetTracker(AliasAnalysis &aa) : AA(aa) {}
|
explicit AliasSetTracker(AliasAnalysis &aa) : AA(aa) {}
|
||||||
|
~AliasSetTracker() { clear(); }
|
||||||
|
|
||||||
/// add methods - These methods are used to add different types of
|
/// add methods - These methods are used to add different types of
|
||||||
/// instructions to the alias sets. Adding a new instruction can result in
|
/// instructions to the alias sets. Adding a new instruction can result in
|
||||||
|
@ -84,6 +84,11 @@ namespace {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool doFinalization() {
|
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();
|
LoopToAliasMap.clear();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user