diff options
author | Dan Gohman <gohman@apple.com> | 2008-03-13 01:57:34 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-03-13 01:57:34 +0000 |
commit | 5fe6e33ef81fc33d74f2569e85fb2128ef2e2024 (patch) | |
tree | 0656120d5b84fbd25afd4bbbabcf66ff9039fc10 /lib/VMCore/PassManager.cpp | |
parent | 0961ec1afe336a0a4f523455c25f5d5edc8d3ee1 (diff) | |
download | external_llvm-5fe6e33ef81fc33d74f2569e85fb2128ef2e2024.zip external_llvm-5fe6e33ef81fc33d74f2569e85fb2128ef2e2024.tar.gz external_llvm-5fe6e33ef81fc33d74f2569e85fb2128ef2e2024.tar.bz2 |
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
Diffstat (limited to 'lib/VMCore/PassManager.cpp')
-rw-r--r-- | lib/VMCore/PassManager.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/VMCore/PassManager.cpp b/lib/VMCore/PassManager.cpp index 614ace3..bd1ce4e 100644 --- a/lib/VMCore/PassManager.cpp +++ b/lib/VMCore/PassManager.cpp @@ -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(); } //===----------------------------------------------------------------------===// |