[all-commits] [llvm/llvm-project] 148ef8: [libc++] Add GCC workaround in std::char_traits<ch...
philnik777 via All-commits
all-commits at lists.llvm.org
Thu Dec 16 05:29:05 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 148ef80f895297975b95800f6fa989674767c5a2
https://github.com/llvm/llvm-project/commit/148ef80f895297975b95800f6fa989674767c5a2
Author: Nikolas Klauser <nikolasklauser at berlin.de>
Date: 2021-12-16 (Thu, 16 Dec 2021)
Changed paths:
M libcxx/include/__string
M libcxx/test/std/strings/string.view/string.view.ops/copy.pass.cpp
Log Message:
-----------
[libc++] Add GCC workaround in std::char_traits<char>::length()
GCC currently does not allow `__builtin_strlen()` during constant evaluation. This PR adds a workaround in `std::char_traits<char>::length()`
Reviewed By: Quuxplusone, ldionne, #libc, Mordante
Spies: Mordante, libcxx-commits
Differential Revision: https://reviews.llvm.org/D115795
More information about the All-commits
mailing list