forked from OSchip/llvm-project
Swap operands instead of using !.
This avoids returning true for A == B. Thanks to Benjamin Kramer for noticing it. llvm-svn: 241490
This commit is contained in:
parent
9c7a623015
commit
cab827532e
|
@ -510,7 +510,7 @@ static void sortAndPrintSymbolList(SymbolicFile &Obj, bool printName,
|
|||
Cmp = compareSymbolName;
|
||||
|
||||
if (ReverseSort)
|
||||
Cmp = [=](const NMSymbol &A, const NMSymbol &B) { return !Cmp(A, B); };
|
||||
Cmp = [=](const NMSymbol &A, const NMSymbol &B) { return Cmp(B, A); };
|
||||
std::sort(SymbolList.begin(), SymbolList.end(), Cmp);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue