commit | 8292d742700b1ed5b64aad40beef86ef39a6b202 | [log] [tgz] |
---|---|---|
author | Howard Hinnant <hhinnant@apple.com> | Thu Dec 29 17:45:35 2011 +0000 |
committer | Howard Hinnant <hhinnant@apple.com> | Thu Dec 29 17:45:35 2011 +0000 |
tree | 5bb338e7d425e13bfe78ddddea09cdd63465dde0 | |
parent | 5586c020c9b9819062306522b76b09561d91d50e [diff] [blame] |
The exception recovery mechanism for the uninitialized_* algorithms did not work for iterators into discontiguous memory. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@147343 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/include/algorithm b/include/algorithm index 4679845..f9c6843 100644 --- a/include/algorithm +++ b/include/algorithm
@@ -4751,6 +4751,8 @@ while (true) { __restart: + if (__nth == __last) + return; difference_type __len = __last - __first; switch (__len) {