forked from OSchip/llvm-project
Fixed a crash in ClangASTSource when logging is
disabled. llvm-svn: 180563
This commit is contained in:
parent
8180db1f03
commit
8ef197729d
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue