Don't crash due to not checking log shared pointer.

llvm-svn: 146126
This commit is contained in:
Greg Clayton 2011-12-08 01:32:28 +00:00
parent 00326406d4
commit 161f367047
1 changed files with 2 additions and 1 deletions

View File

@ -624,7 +624,8 @@ ClangASTSource::FindObjCMethodDecls (NameSearchContext &context)
if (!copied_decl)
{
log->Printf(" CAS::FOMD[%d] couldn't import method from symbols", current_id);
if (log)
log->Printf(" CAS::FOMD[%d] couldn't import method from symbols", current_id);
continue;
}