[libcxx-commits] [PATCH] D150779: [libc++] Avoid dereferencing a const iterator in std::sort

Louis Dionne via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Wed May 17 07:19:40 PDT 2023


ldionne created this revision.
Herald added a project: All.
ldionne requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.

This is a workaround to provide a grace period for folks that were
broken by D147089 <https://reviews.llvm.org/D147089>. As a fly-by, also apply comments by Mark I had
somehow missed in the review.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D150779

Files:
  libcxx/include/__algorithm/sort.h
  libcxx/test/libcxx/algorithms/alg.sorting/assert.sort.invalid_comparator.pass.cpp
  libcxx/test/libcxx/algorithms/alg.sorting/bad_comparator_values.dat
  libcxx/test/libcxx/algorithms/alg.sorting/bad_comparator_values.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D150779.523046.patch
Type: text/x-patch
Size: 7761 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20230517/ca617208/attachment.bin>


More information about the libcxx-commits mailing list