Commit 237cb04
committed
Fix the sort function for languages to have "strict weak ordering".
If you build libstdc++ with "debug" strictness, the test TestTypeLookup.py
will assert. That's because we're calling llvm::sort (which redirects to
std::sort) with a function that doesn't obey strict weak ordering.
The error was that when the two languages were equal, we're sometimes
returning `true` but strict weak ordering requires that always be false.
This patch just makes the function behave properly.1 parent 39303e2 commit 237cb04
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2649 | 2649 | | |
2650 | 2650 | | |
2651 | 2651 | | |
| 2652 | + | |
2652 | 2653 | | |
2653 | 2654 | | |
2654 | 2655 | | |
| |||
0 commit comments