mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 09:53:54 +00:00
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
7b0c357367
commit
fd38a28754
@ -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…
x
Reference in New Issue
Block a user