libcxx: Update to Clang 20.
See: * https://discourse.llvm.org/t/rfc-freezing-c-03-headers-in-libc/77319 * https://discourse.llvm.org/t/rfc-project-hand-in-hand-llvm-libc-libc-code-sharing/77701 We're dropping support for C++03 for Zig due to the first change; it would be insane to ship 1018 duplicate header files just for this outdated use case. As a result of the second change, I had to bring in a subset of the headers from llvm-libc since libc++ now depends on these. Hopefully we can continue to get away with not copying the entirety of llvm-libc.
This commit is contained in:
5
lib/libcxx/src/algorithm.cpp
vendored
5
lib/libcxx/src/algorithm.cpp
vendored
@@ -21,13 +21,12 @@ void __sort(RandomAccessIterator first, RandomAccessIterator last, Comp comp) {
|
||||
std::__introsort<_ClassicAlgPolicy,
|
||||
ranges::less,
|
||||
RandomAccessIterator,
|
||||
__use_branchless_sort<ranges::less, RandomAccessIterator>::value>(
|
||||
first, last, ranges::less{}, depth_limit);
|
||||
__use_branchless_sort<ranges::less, RandomAccessIterator>>(first, last, ranges::less{}, depth_limit);
|
||||
}
|
||||
|
||||
// clang-format off
|
||||
template void __sort<__less<char>&, char*>(char*, char*, __less<char>&);
|
||||
#ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
|
||||
#if _LIBCPP_HAS_WIDE_CHARACTERS
|
||||
template void __sort<__less<wchar_t>&, wchar_t*>(wchar_t*, wchar_t*, __less<wchar_t>&);
|
||||
#endif
|
||||
template void __sort<__less<signed char>&, signed char*>(signed char*, signed char*, __less<signed char>&);
|
||||
|
||||
Reference in New Issue
Block a user