mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-12 07:37:34 +00:00
Swap operands instead of using !.
This avoids returning true for A == B. Thanks to Benjamin Kramer for noticing it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241490 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
40b3496f9a
commit
9c3967db0f
@ -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