From 701c919d16a1a6c91f580157ee8da10fab70bef4 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Wed, 20 Jul 2016 21:38:26 +0000 Subject: [PATCH] Fix memory leak introduced in r276159. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@276188 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/AST/ASTContext.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp index fadcda0c4b..cf7f5947a2 100644 --- a/lib/AST/ASTContext.cpp +++ b/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); } -- 2.40.0