[Lldb-commits] [lldb] r146126 - /lldb/trunk/source/Expression/ClangASTSource.cpp
Greg Clayton
gclayton at apple.com
Wed Dec 7 17:32:28 PST 2011
Author: gclayton
Date: Wed Dec 7 19:32:28 2011
New Revision: 146126
URL: http://llvm.org/viewvc/llvm-project?rev=146126&view=rev
Log:
Don't crash due to not checking log shared pointer.
Modified:
lldb/trunk/source/Expression/ClangASTSource.cpp
Modified: lldb/trunk/source/Expression/ClangASTSource.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/ClangASTSource.cpp?rev=146126&r1=146125&r2=146126&view=diff
==============================================================================
--- lldb/trunk/source/Expression/ClangASTSource.cpp (original)
+++ lldb/trunk/source/Expression/ClangASTSource.cpp Wed Dec 7 19:32:28 2011
@@ -624,7 +624,8 @@
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;
}
More information about the lldb-commits
mailing list