diff options
author | Louis Dionne <ldionne.2@gmail.com> | 2024-08-16 11:08:34 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-16 11:08:34 -0400 |
commit | 99696b35bc8a0054e0b0c1a26e8dd5049fa8c41b (patch) | |
tree | f7f5c4d2fe351138ae33899fd57ce0daa9917501 /llvm/lib/Object/COFFImportFile.cpp | |
parent | 60bffe221a1d615ffc7c6b632287d0fbd27ef863 (diff) | |
download | llvm-99696b35bc8a0054e0b0c1a26e8dd5049fa8c41b.zip llvm-99696b35bc8a0054e0b0c1a26e8dd5049fa8c41b.tar.gz llvm-99696b35bc8a0054e0b0c1a26e8dd5049fa8c41b.tar.bz2 |
[libc++] Fix rejects-valid in std::span copy construction (#104500)
Trying to copy-construct a std::span from another std::span holding an
incomplete type would fail as we evaluate the SFINAE for the range-based
constructor. The problem was that we checked for __is_std_span after
checking for the range being a contiguous_range, which hard-errored
because of arithmetic on a pointer to incomplete type.
As a drive-by, refactor the whole test and format it.
Fixes #104496
Diffstat (limited to 'llvm/lib/Object/COFFImportFile.cpp')
0 files changed, 0 insertions, 0 deletions