From fc56a0123b32c98f69e2957efa827747513c08f3 Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Fri, 13 Jun 2014 21:57:58 +0000 Subject: Don't dereference target if it is NULL. Caught by the clang static analyzer by Jason Molenda. llvm-svn: 210941 --- lldb/source/Expression/ClangExpressionDeclMap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/source/Expression/ClangExpressionDeclMap.cpp') diff --git a/lldb/source/Expression/ClangExpressionDeclMap.cpp b/lldb/source/Expression/ClangExpressionDeclMap.cpp index 2dee8c86fae..66673dbb463 100644 --- a/lldb/source/Expression/ClangExpressionDeclMap.cpp +++ b/lldb/source/Expression/ClangExpressionDeclMap.cpp @@ -1376,7 +1376,7 @@ ClangExpressionDeclMap::FindExternalVisibleDecls (NameSearchContext &context, } else if (sym_ctx.symbol) { - if (sym_ctx.symbol->GetType() == eSymbolTypeReExported) + if (sym_ctx.symbol->GetType() == eSymbolTypeReExported && target) { sym_ctx.symbol = sym_ctx.symbol->ResolveReExportedSymbol(*target); if (sym_ctx.symbol == NULL) -- cgit v1.2.3