commit | 05da5b0205aeada52a6838353d214db3723c79c7 | [log] [tgz] |
---|---|---|
author | Marshall Clow <[email protected]> | Mon Oct 30 15:50:00 2017 |
committer | Marshall Clow <[email protected]> | Mon Oct 30 15:50:00 2017 |
tree | 2cc8e56888649ff4c4938cd9f475e40bdd6979c7 | |
parent | 4e13d4de52783dbdf9268a01055b546f5176947c [diff] [blame] |
Fix PR#35119 : set_union misbehaves with move_iterators. Thanks to Denis Yaroshevskiy for both the bug report and the fix. llvm-svn: 316914
diff --git a/libcxx/include/algorithm b/libcxx/include/algorithm index 282083a..f5776b4 100644 --- a/libcxx/include/algorithm +++ b/libcxx/include/algorithm
@@ -5547,9 +5547,9 @@ } else { - *__result = *__first1; if (!__comp(*__first1, *__first2)) ++__first2; + *__result = *__first1; ++__first1; } }