summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2016-07-20 21:38:26 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2016-07-20 21:38:26 +0000
commit423f46f2d8e38f1556daee467d8a4e3aefd28beb (patch)
tree20c6108ee295080a72cfe56373c19ff94612e4c5 /clang/lib
parent913feb2a0df3f6eef8c1f2c4191e1cd9b8a872fe (diff)
downloadbcm5719-llvm-423f46f2d8e38f1556daee467d8a4e3aefd28beb.tar.gz
bcm5719-llvm-423f46f2d8e38f1556daee467d8a4e3aefd28beb.zip
Fix memory leak introduced in r276159.
llvm-svn: 276188
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/AST/ASTContext.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp
index fadcda0c4b0..cf7f5947a2f 100644
--- a/clang/lib/AST/ASTContext.cpp
+++ b/clang/lib/AST/ASTContext.cpp
@@ -787,6 +787,9 @@ ASTContext::~ASTContext() {
MaterializedTemporaryValues)
MTVPair.second->~APValue();
+ for (const auto &Value : ModuleInitializers)
+ Value.second->~PerModuleInitializers();
+
llvm::DeleteContainerSeconds(MangleNumberingContexts);
}
OpenPOWER on IntegriCloud