[ASTContext] Call APValue destructors for MaterializedTemporaryValues

Hopefully this makes the sanitizer build bot happy.

llvm-svn: 245054
This commit is contained in:
David Majnemer 2015-08-14 14:43:50 +00:00
parent 3bf356ee9c
commit e694f3e847
1 changed files with 4 additions and 0 deletions

View File

@ -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);
}