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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48316 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman 2008-03-13 01:57:34 +00:00
parent 0961ec1afe
commit 5fe6e33ef8

View File

@ -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();
}
//===----------------------------------------------------------------------===//