diff options
author | Louis Dionne <ldionne.2@gmail.com> | 2024-08-20 14:36:11 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-20 14:36:11 -0400 |
commit | f73050e722dd2e484358d03674eb186f3a2f4799 (patch) | |
tree | 79b54a16cad0ff83eae72de1ba130b4545a61d6e /llvm/lib/Object/MachOObjectFile.cpp | |
parent | 31e55d461693df035049e09cbeeb8886ca2cb6d3 (diff) | |
download | llvm-f73050e722dd2e484358d03674eb186f3a2f4799.zip llvm-f73050e722dd2e484358d03674eb186f3a2f4799.tar.gz llvm-f73050e722dd2e484358d03674eb186f3a2f4799.tar.bz2 |
[libc++] Fix several double-moves in the code base (#104616)
This patch hardens the "test iterators" we use to test algorithms by
ensuring that they don't get double-moved. As a result of this
hardening, the tests started reporting multiple failures where we would
double-move iterators, which are being fixed in this patch.
In particular:
- Fixed a double-move in pstl.partition
- Add coverage for begin()/end() in subrange tests
- Fix tests for ranges::ends_with and ranges::contains, which were
incorrectly calling begin() twice on the same subrange containing
non-copyable input iterators.
Fixes #100709
Diffstat (limited to 'llvm/lib/Object/MachOObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions