summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/ASTContext.cpp
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2014-02-19 23:44:52 +0000
committerReid Kleckner <reid@kleckner.net>2014-02-19 23:44:52 +0000
commit588c9372282fb93359554fefdcec4c399512d9d7 (patch)
treeb4d3baf0c758439c135196ecac9f3536105f01b7 /clang/lib/AST/ASTContext.cpp
parent7ce956ded49fd8c7fd1665e96530f179d05229ca (diff)
downloadbcm5719-llvm-588c9372282fb93359554fefdcec4c399512d9d7.tar.gz
bcm5719-llvm-588c9372282fb93359554fefdcec4c399512d9d7.zip
Use llvm::DeleteContainerSeconds when possible
llvm-svn: 201739
Diffstat (limited to 'clang/lib/AST/ASTContext.cpp')
-rw-r--r--clang/lib/AST/ASTContext.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp
index 6af79cd5383..a1f2e1f4ab6 100644
--- a/clang/lib/AST/ASTContext.cpp
+++ b/clang/lib/AST/ASTContext.cpp
@@ -783,11 +783,7 @@ ASTContext::~ASTContext() {
A != AEnd; ++A)
A->second->~AttrVec();
- for (llvm::DenseMap<const DeclContext *, MangleNumberingContext *>::iterator
- I = MangleNumberingContexts.begin(),
- E = MangleNumberingContexts.end();
- I != E; ++I)
- delete I->second;
+ llvm::DeleteContainerSeconds(MangleNumberingContexts);
}
void ASTContext::AddDeallocation(void (*Callback)(void*), void *Data) {
OpenPOWER on IntegriCloud