forked from OSchip/llvm-project
Don't redundantly clear std::vector members in destructors.
llvm-svn: 48316
This commit is contained in:
parent
73caf5ff10
commit
1412f515c3
|
@ -541,8 +541,6 @@ PMTopLevelManager::~PMTopLevelManager() {
|
|||
for (std::vector<ImmutablePass *>::iterator
|
||||
I = ImmutablePasses.begin(), E = ImmutablePasses.end(); I != E; ++I)
|
||||
delete *I;
|
||||
|
||||
PassManagers.clear();
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
@ -928,7 +926,6 @@ PMDataManager::~PMDataManager() {
|
|||
E = PassVector.end(); I != E; ++I)
|
||||
delete *I;
|
||||
|
||||
PassVector.clear();
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
|
Loading…
Reference in New Issue