summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/ASTContext.cpp
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2015-08-14 14:43:50 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2015-08-14 14:43:50 +0000
commite694f3e8472c85d90927786cec00d17d8218067d (patch)
treeb97888b7ea6ada49b5b6686108bbc9e419b3c861 /clang/lib/AST/ASTContext.cpp
parent3bf356ee9c6ae96a42504d56f3d2286bb3dd9c86 (diff)
downloadbcm5719-llvm-e694f3e8472c85d90927786cec00d17d8218067d.tar.gz
bcm5719-llvm-e694f3e8472c85d90927786cec00d17d8218067d.zip
[ASTContext] Call APValue destructors for MaterializedTemporaryValues
Hopefully this makes the sanitizer build bot happy. llvm-svn: 245054
Diffstat (limited to 'clang/lib/AST/ASTContext.cpp')
-rw-r--r--clang/lib/AST/ASTContext.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp
index d0c58ef994b..192120abf1b 100644
--- a/clang/lib/AST/ASTContext.cpp
+++ b/clang/lib/AST/ASTContext.cpp
@@ -783,6 +783,10 @@ ASTContext::~ASTContext() {
A != AEnd; ++A)
A->second->~AttrVec();
+ for (std::pair<const MaterializeTemporaryExpr *, APValue *> &MTVPair :
+ MaterializedTemporaryValues)
+ MTVPair.second->~APValue();
+
llvm::DeleteContainerSeconds(MangleNumberingContexts);
}
OpenPOWER on IntegriCloud