strncmp was checked incorrectly in the Linux symbol lookup fix.
llvm-svn: 181818
This commit is contained in:
parent
803e506fec
commit
04e5d58c8d
|
|
@ -3565,8 +3565,8 @@ SymbolFileDWARF::FindFunctions (const ConstString &name,
|
||||||
{
|
{
|
||||||
ConstString mangled_name = sc.GetFunctionName(Mangled::ePreferMangled);
|
ConstString mangled_name = sc.GetFunctionName(Mangled::ePreferMangled);
|
||||||
ConstString demangled_name = sc.GetFunctionName(Mangled::ePreferDemangled);
|
ConstString demangled_name = sc.GetFunctionName(Mangled::ePreferDemangled);
|
||||||
if (!strncmp(mangled_name.GetCString(), "_ZN", 3) ||
|
if (strncmp(mangled_name.GetCString(), "_ZN", 3) ||
|
||||||
strncmp(demangled_name.GetCString(), "(anonymous namespace)", 21))
|
!strncmp(demangled_name.GetCString(), "(anonymous namespace)", 21))
|
||||||
{
|
{
|
||||||
sc_list.Append(sc);
|
sc_list.Append(sc);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue