Switching from an explicit loop to DeleteContainerSeconds; NFC.
llvm-svn: 244802
This commit is contained in:
parent
4d48e5b371
commit
7596bcf726
|
@ -15,6 +15,7 @@
|
|||
#include "clang/ASTMatchers/Dynamic/Registry.h"
|
||||
#include "Marshallers.h"
|
||||
#include "clang/ASTMatchers/ASTMatchers.h"
|
||||
#include "llvm/ADT/STLExtras.h"
|
||||
#include "llvm/ADT/StringMap.h"
|
||||
#include "llvm/ADT/StringRef.h"
|
||||
#include "llvm/Support/ManagedStatic.h"
|
||||
|
@ -358,8 +359,7 @@ RegistryMaps::RegistryMaps() {
|
|||
}
|
||||
|
||||
RegistryMaps::~RegistryMaps() {
|
||||
for (auto &E : Constructors)
|
||||
delete E.getValue();
|
||||
llvm::DeleteContainerSeconds(Constructors);
|
||||
}
|
||||
|
||||
static llvm::ManagedStatic<RegistryMaps> RegistryData;
|
||||
|
|
Loading…
Reference in New Issue