summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHoward Hinnant <hhinnant@apple.com>2011-11-28 19:49:26 +0000
committerHoward Hinnant <hhinnant@apple.com>2011-11-28 19:49:26 +0000
commit1c2c87c5023f36a7a43bf3611f85b57bea15811e (patch)
tree4af98955edaefebe29459eb2b4ce2e5d9471c217
parent25d09c22093ed7ca3b2f30a844421991805db029 (diff)
downloadbcm5719-llvm-1c2c87c5023f36a7a43bf3611f85b57bea15811e.tar.gz
bcm5719-llvm-1c2c87c5023f36a7a43bf3611f85b57bea15811e.zip
Remove redundant iterator assignment detected by Marshall Clow
llvm-svn: 145265
-rw-r--r--libcxx/include/algorithm3
1 files changed, 0 insertions, 3 deletions
diff --git a/libcxx/include/algorithm b/libcxx/include/algorithm
index a89b9dd65ea..6749bf61178 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)
OpenPOWER on IntegriCloud