diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-07-20 21:38:26 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-07-20 21:38:26 +0000 |
commit | 423f46f2d8e38f1556daee467d8a4e3aefd28beb (patch) | |
tree | 20c6108ee295080a72cfe56373c19ff94612e4c5 /clang/lib | |
parent | 913feb2a0df3f6eef8c1f2c4191e1cd9b8a872fe (diff) | |
download | bcm5719-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.cpp | 3 |
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); } |