We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af79957 commit f26f238Copy full SHA for f26f238
libcxx/include/__algorithm/stable_sort.h
@@ -55,10 +55,7 @@ _LIBCPP_HIDE_FROM_ABI void __insertion_sort_move(
55
value_type* __j2 = __last2;
56
value_type* __i2 = __j2;
57
if (__comp(*__first1, *--__i2)) {
58
- {
59
- value_type& __tmp = *__i2;
60
- std::__construct_at(__j2, std::move(__tmp));
61
- }
+ std::__construct_at(__j2, std::move(*__i2));
62
__d.template __incr<value_type>();
63
for (--__j2; __i2 != __first2 && __comp(*__first1, *--__i2); --__j2)
64
*__j2 = std::move(*__i2);
0 commit comments