summaryrefslogtreecommitdiffstats
path: root/lldb/source/Symbol/ClangASTContext.cpp
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2010-10-28 18:43:33 +0000
committerSean Callanan <scallanan@apple.com>2010-10-28 18:43:33 +0000
commit48ae719dc5664280ac2fa69e421028f4eec2ed4c (patch)
tree068d9659dd430eb7394055977de63cdeed35a94e /lldb/source/Symbol/ClangASTContext.cpp
parent851a994a42a24331bc8ae628c232cba730ccb200 (diff)
downloadbcm5719-llvm-48ae719dc5664280ac2fa69e421028f4eec2ed4c.tar.gz
bcm5719-llvm-48ae719dc5664280ac2fa69e421028f4eec2ed4c.zip
Explicatory comment for folks that may not be
familiar with the ownership relationships involving Diagnostic. llvm-svn: 117573
Diffstat (limited to 'lldb/source/Symbol/ClangASTContext.cpp')
-rw-r--r--lldb/source/Symbol/ClangASTContext.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lldb/source/Symbol/ClangASTContext.cpp b/lldb/source/Symbol/ClangASTContext.cpp
index efea85acb45..760d8ecba59 100644
--- a/lldb/source/Symbol/ClangASTContext.cpp
+++ b/lldb/source/Symbol/ClangASTContext.cpp
@@ -738,6 +738,7 @@ ClangASTContext::CopyType (ASTContext *dest_context,
ASTContext *source_context,
clang_type_t clang_type)
{
+ // null_client's ownership is transferred to diagnostics
NullDiagnosticClient *null_client = new NullDiagnosticClient;
Diagnostic diagnostics(null_client);
FileManager file_manager;
OpenPOWER on IntegriCloud