Fixed a crash in ClangASTSource when logging is

disabled.

llvm-svn: 180563
This commit is contained in:
Sean Callanan 2013-04-25 18:50:43 +00:00
parent 8180db1f03
commit 8ef197729d
1 changed files with 2 additions and 1 deletions

View File

@ -1776,7 +1776,8 @@ NameSearchContext::AddFunDecl (void *type)
{
Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_EXPRESSIONS));
log->Printf("Function type wasn't a FunctionProtoType");
if (log)
log->Printf("Function type wasn't a FunctionProtoType");
}
m_decls.push_back(func_decl);