diff options
-rw-r--r-- | lldb/source/Expression/ClangExpressionDeclMap.cpp | 3 |
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; } |