forked from OSchip/llvm-project
Fix potential null deref; after SymbolContextSpecifier::SymbolContextMatches
has tested that sc.function is null, it would try to deref sc.function. It should be calling sc.symbol here. llvm-svn: 251583
This commit is contained in:
parent
7d0e34eb33
commit
8fe108766f
|
|
@ -1089,7 +1089,7 @@ SymbolContextSpecifier::SymbolContextMatches(SymbolContext &sc)
|
|||
}
|
||||
else if (sc.symbol != nullptr)
|
||||
{
|
||||
if (!sc.symbol->GetMangled().NameMatches(func_name, sc.function->GetLanguage()))
|
||||
if (!sc.symbol->GetMangled().NameMatches(func_name, sc.symbol->GetLanguage()))
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue