[Lldb-commits] [lldb] r137169 - /lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp
Johnny Chen
johnny.chen at apple.com
Tue Aug 9 15:52:27 PDT 2011
Author: johnny
Date: Tue Aug 9 17:52:27 2011
New Revision: 137169
URL: http://llvm.org/viewvc/llvm-project?rev=137169&view=rev
Log:
Check log shared pointer before using it.
Modified:
lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp
Modified: lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp?rev=137169&r1=137168&r2=137169&view=diff
==============================================================================
--- lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp (original)
+++ lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp Tue Aug 9 17:52:27 2011
@@ -2393,7 +2393,8 @@
if (!ast_type)
{
- log->Printf("Tried to add a type for %s, but couldn't get one", context.m_decl_name.getAsString().c_str());
+ if (log)
+ log->Printf("Tried to add a type for %s, but couldn't get one", context.m_decl_name.getAsString().c_str());
return;
}
More information about the lldb-commits
mailing list