From 1412f515c3055da3ed04d2bc1d7aa98b3fc45754 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Thu, 13 Mar 2008 01:57:34 +0000 Subject: [PATCH] Don't redundantly clear std::vector members in destructors. llvm-svn: 48316 --- llvm/lib/VMCore/PassManager.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/llvm/lib/VMCore/PassManager.cpp b/llvm/lib/VMCore/PassManager.cpp index 614ace315869..bd1ce4ed382d 100644 --- a/llvm/lib/VMCore/PassManager.cpp +++ b/llvm/lib/VMCore/PassManager.cpp @@ -541,8 +541,6 @@ PMTopLevelManager::~PMTopLevelManager() { for (std::vector::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(); } //===----------------------------------------------------------------------===//