forked from OSchip/llvm-project
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:
parent
04ed1d1b68
commit
fc56a0123b
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue