r245054 - [ASTContext] Call APValue destructors for MaterializedTemporaryValues
David Majnemer via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 14 07:43:50 PDT 2015
Author: majnemer
Date: Fri Aug 14 09:43:50 2015
New Revision: 245054
URL: http://llvm.org/viewvc/llvm-project?rev=245054&view=rev
Log:
[ASTContext] Call APValue destructors for MaterializedTemporaryValues
Hopefully this makes the sanitizer build bot happy.
Modified:
cfe/trunk/lib/AST/ASTContext.cpp
Modified: cfe/trunk/lib/AST/ASTContext.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ASTContext.cpp?rev=245054&r1=245053&r2=245054&view=diff
==============================================================================
--- cfe/trunk/lib/AST/ASTContext.cpp (original)
+++ cfe/trunk/lib/AST/ASTContext.cpp Fri Aug 14 09:43:50 2015
@@ -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);
}
More information about the cfe-commits
mailing list