Switching from an explicit loop to DeleteContainerSeconds; NFC.

llvm-svn: 244802
This commit is contained in:
Aaron Ballman 2015-08-12 20:05:18 +00:00
parent 4d48e5b371
commit 7596bcf726
1 changed files with 2 additions and 2 deletions

View File

@ -15,6 +15,7 @@
#include "clang/ASTMatchers/Dynamic/Registry.h" #include "clang/ASTMatchers/Dynamic/Registry.h"
#include "Marshallers.h" #include "Marshallers.h"
#include "clang/ASTMatchers/ASTMatchers.h" #include "clang/ASTMatchers/ASTMatchers.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/StringMap.h" #include "llvm/ADT/StringMap.h"
#include "llvm/ADT/StringRef.h" #include "llvm/ADT/StringRef.h"
#include "llvm/Support/ManagedStatic.h" #include "llvm/Support/ManagedStatic.h"
@ -358,8 +359,7 @@ RegistryMaps::RegistryMaps() {
} }
RegistryMaps::~RegistryMaps() { RegistryMaps::~RegistryMaps() {
for (auto &E : Constructors) llvm::DeleteContainerSeconds(Constructors);
delete E.getValue();
} }
static llvm::ManagedStatic<RegistryMaps> RegistryData; static llvm::ManagedStatic<RegistryMaps> RegistryData;