Don't redundantly clear std::vector members in destructors.

llvm-svn: 48316
This commit is contained in:
Dan Gohman 2008-03-13 01:57:34 +00:00
parent 73caf5ff10
commit 1412f515c3
1 changed files with 0 additions and 3 deletions

View File

@ -541,8 +541,6 @@ PMTopLevelManager::~PMTopLevelManager() {
for (std::vector<ImmutablePass *>::iterator for (std::vector<ImmutablePass *>::iterator
I = ImmutablePasses.begin(), E = ImmutablePasses.end(); I != E; ++I) I = ImmutablePasses.begin(), E = ImmutablePasses.end(); I != E; ++I)
delete *I; delete *I;
PassManagers.clear();
} }
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
@ -928,7 +926,6 @@ PMDataManager::~PMDataManager() {
E = PassVector.end(); I != E; ++I) E = PassVector.end(); I != E; ++I)
delete *I; delete *I;
PassVector.clear();
} }
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//