]> granicus.if.org Git - clang/commit
When copying a partial diagnostic into a DependentDiagnostic, allocate
authorDouglas Gregor <dgregor@apple.com>
Mon, 29 Mar 2010 23:56:53 +0000 (23:56 +0000)
committerDouglas Gregor <dgregor@apple.com>
Mon, 29 Mar 2010 23:56:53 +0000 (23:56 +0000)
commitb836518bfc0a2ad5e22a670c82fa070ed83ea909
tree1fbca9bc927901163328ad7b8f1e8a3c3d2ac151
parentfe6b2d481d91140923f4541f273b253291884214
When copying a partial diagnostic into a DependentDiagnostic, allocate
storage for that partial diagnostic via the ASTContext's
BumpPtrAllocator rather than using up slots in the ASTContext's
cache. Now that we do this, we don't have to worry about destroying
dependent diagnostics when destroying a DependentStoredDeclsMap.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99854 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/DeclContextInternals.h
include/clang/AST/DependentDiagnostic.h
include/clang/Basic/PartialDiagnostic.h
lib/AST/DeclBase.cpp