summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-08-09 22:52:27 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-08-09 22:52:27 +0000
commite95fcf7860d7de015a4fd2b41eb785340c32f875 (patch)
tree6e83c71fb0ec460fada60b2f0ecd189ac666c873
parent042619f97d1060841eb196f3f6c113358de8c1fe (diff)
downloadbcm5719-llvm-e95fcf7860d7de015a4fd2b41eb785340c32f875.tar.gz
bcm5719-llvm-e95fcf7860d7de015a4fd2b41eb785340c32f875.zip
Check log shared pointer before using it.
llvm-svn: 137169
-rw-r--r--lldb/source/Expression/ClangExpressionDeclMap.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Expression/ClangExpressionDeclMap.cpp b/lldb/source/Expression/ClangExpressionDeclMap.cpp
index f3f4b022cdf..f37eb2a9e21 100644
--- a/lldb/source/Expression/ClangExpressionDeclMap.cpp
+++ b/lldb/source/Expression/ClangExpressionDeclMap.cpp
@@ -2393,7 +2393,8 @@ ClangExpressionDeclMap::AddOneRegister (NameSearchContext &context,
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;
}
OpenPOWER on IntegriCloud