strncmp was checked incorrectly in the Linux symbol lookup fix.

llvm-svn: 181818
This commit is contained in:
Matt Kopec 2013-05-14 19:00:41 +00:00
parent 803e506fec
commit 04e5d58c8d
1 changed files with 2 additions and 2 deletions

View File

@ -3565,8 +3565,8 @@ SymbolFileDWARF::FindFunctions (const ConstString &name,
{
ConstString mangled_name = sc.GetFunctionName(Mangled::ePreferMangled);
ConstString demangled_name = sc.GetFunctionName(Mangled::ePreferDemangled);
if (!strncmp(mangled_name.GetCString(), "_ZN", 3) ||
strncmp(demangled_name.GetCString(), "(anonymous namespace)", 21))
if (strncmp(mangled_name.GetCString(), "_ZN", 3) ||
!strncmp(demangled_name.GetCString(), "(anonymous namespace)", 21))
{
sc_list.Append(sc);
}