diff options
author | A. Jiang <de34@live.cn> | 2023-12-19 04:41:14 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-18 15:41:14 -0500 |
commit | 1821bc1e969bd2d0887fe115ae371506adc1a8be (patch) | |
tree | 57b2ec6dfeae0f8391cfdfc329afaa099da7e9a7 /clang/lib/CodeGen/BackendUtil.cpp | |
parent | a7e10e66030099447919c3f61dbd3a3a41ba66f3 (diff) | |
download | llvm-1821bc1e969bd2d0887fe115ae371506adc1a8be.zip llvm-1821bc1e969bd2d0887fe115ae371506adc1a8be.tar.gz llvm-1821bc1e969bd2d0887fe115ae371506adc1a8be.tar.bz2 |
[libc++] Fix the handling of `views::take` for `iota_view` (#75683)
Currently, when libc++'s views::take specially handles an iota_view, the
addition is done after dereferencing the beginning iterator. However, in
[range.take.overview]/2.3, the addition is done before the dereferencing,
which means that the standard requires the returned iota_view to have
the same W and Bound type in such cases.
This patch fixes that, and also fixes a test that was testing the
incorrect behavior.
Fixes #75611
Diffstat (limited to 'clang/lib/CodeGen/BackendUtil.cpp')
0 files changed, 0 insertions, 0 deletions