[Lldb-commits] [lldb] r180563 - Fixed a crash in ClangASTSource when logging is
Sean Callanan
scallanan at apple.com
Thu Apr 25 11:50:46 PDT 2013
Author: spyffe
Date: Thu Apr 25 13:50:43 2013
New Revision: 180563
URL: http://llvm.org/viewvc/llvm-project?rev=180563&view=rev
Log:
Fixed a crash in ClangASTSource when logging is
disabled.
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=180563&r1=180562&r2=180563&view=diff
==============================================================================
--- lldb/trunk/source/Expression/ClangASTSource.cpp (original)
+++ lldb/trunk/source/Expression/ClangASTSource.cpp Thu Apr 25 13:50:43 2013
@@ -1776,7 +1776,8 @@ NameSearchContext::AddFunDecl (void *typ
{
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);
More information about the lldb-commits
mailing list