Don't dereference target if it is NULL.

Caught by the clang static analyzer by Jason Molenda.

llvm-svn: 210941
This commit is contained in:
Greg Clayton 2014-06-13 21:57:58 +00:00
parent 04ed1d1b68
commit fc56a0123b
1 changed files with 1 additions and 1 deletions

View File

@ -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)