Skip to content

Commit 1a895bd

Browse files
authored
[libc++] Marks a variable const. (#88562)
This removes a TODO from the code base.
1 parent 844b532 commit 1a895bd

File tree

1 file changed

+2
-3
lines changed
  • libcxx/include/__algorithm

1 file changed

+2
-3
lines changed

libcxx/include/__algorithm/sort.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -696,9 +696,8 @@ __partition_with_equals_on_left(_RandomAccessIterator __first, _RandomAccessIter
696696
using _Ops = _IterOps<_AlgPolicy>;
697697
typedef typename iterator_traits<_RandomAccessIterator>::difference_type difference_type;
698698
typedef typename std::iterator_traits<_RandomAccessIterator>::value_type value_type;
699-
// TODO(LLVM18): Make __begin const, see https://reviews.llvm.org/D147089#4349748
700-
_RandomAccessIterator __begin = __first; // used for bounds checking, those are not moved around
701-
const _RandomAccessIterator __end = __last;
699+
const _RandomAccessIterator __begin = __first; // used for bounds checking, those are not moved around
700+
const _RandomAccessIterator __end = __last;
702701
(void)__end; //
703702
value_type __pivot(_Ops::__iter_move(__first));
704703
if (__comp(__pivot, *(__last - difference_type(1)))) {

0 commit comments

Comments
 (0)