diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp index fadcda0c4b00..cf7f5947a2f2 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); }