Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHoward Hinnant <hhinnant@apple.com>2011-11-28 23:49:26 +0400
committerHoward Hinnant <hhinnant@apple.com>2011-11-28 23:49:26 +0400
commit1c2c87c5023f36a7a43bf3611f85b57bea15811e (patch)
tree4af98955edaefebe29459eb2b4ce2e5d9471c217 /libcxx/include/algorithm
parent25d09c22093ed7ca3b2f30a844421991805db029 (diff)
Remove redundant iterator assignment detected by Marshall Clow
llvm-svn: 145265
Diffstat (limited to 'libcxx/include/algorithm')
-rw-r--r--libcxx/include/algorithm3
1 files changed, 0 insertions, 3 deletions
diff --git a/libcxx/include/algorithm b/libcxx/include/algorithm
index a89b9dd65eab..6749bf61178d 100644
--- a/libcxx/include/algorithm
+++ b/libcxx/include/algorithm
@@ -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)