diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2024-03-28 22:58:49 +0100 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2024-03-28 23:11:58 +0100 |
commit | 219511aee21cc652e1ede0458de4a4a66f04c81c (patch) | |
tree | abee6c1a28edb528a6899c6046db4d9b12be78b8 /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | c482fad2c1de367f8fef2b40361dec00523707f7 (diff) | |
download | llvm-219511aee21cc652e1ede0458de4a4a66f04c81c.zip llvm-219511aee21cc652e1ede0458de4a4a66f04c81c.tar.gz llvm-219511aee21cc652e1ede0458de4a4a66f04c81c.tar.bz2 |
[APINotes] Make an assert in a std::sort call tolerate self-comparisons
libc++ debug mode verifies that a comparator passed to std::sort defines
a strict weak order by calling it with the same element.
See also:
- RFC that introduced the feature:
https://discourse.llvm.org/t/rfc-strict-weak-ordering-checks-in-the-debug-libc/70217
- `strict_weak_ordering_check.h` in libc++ sources.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions