Remove redundant iterator assignment detected by Marshall Clow
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@145265 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0dd0b4d758
commit
34869adacb
@ -2328,10 +2328,7 @@ minmax_element(_ForwardIterator __first, _ForwardIterator __last, _Compare __com
|
||||
if (++__first != __last)
|
||||
{
|
||||
if (__comp(*__first, *__result.first))
|
||||
{
|
||||
__result.second = __result.first;
|
||||
__result.first = __first;
|
||||
}
|
||||
else
|
||||
__result.second = __first;
|
||||
while (++__first != __last)
|
||||
|
Loading…
Reference in New Issue
Block a user