summaryrefslogtreecommitdiffstats
path: root/lldb/source/Expression/ClangExpressionDeclMap.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2014-06-13 21:57:58 +0000
committerGreg Clayton <gclayton@apple.com>2014-06-13 21:57:58 +0000
commitfc56a0123b32c98f69e2957efa827747513c08f3 (patch)
treefe3e66f4b5fadd9d92899bfecf88d1cecd1a632a /lldb/source/Expression/ClangExpressionDeclMap.cpp
parent04ed1d1b685525a00de81b896abddddcc510c91b (diff)
downloadbcm5719-llvm-fc56a0123b32c98f69e2957efa827747513c08f3.tar.gz
bcm5719-llvm-fc56a0123b32c98f69e2957efa827747513c08f3.zip
Don't dereference target if it is NULL.
Caught by the clang static analyzer by Jason Molenda. llvm-svn: 210941
Diffstat (limited to 'lldb/source/Expression/ClangExpressionDeclMap.cpp')
-rw-r--r--lldb/source/Expression/ClangExpressionDeclMap.cpp2
1 files changed, 1 insertions, 1 deletions
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)
OpenPOWER on IntegriCloud