commit | b34b48196ca5de5f83562ee9dd0050350b8e4e16 | [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 | d753ceb92d1748ca2ded9620ba621b0a94b5110e | |
parent | 9e61291bf56234402e0bae5caa68adbfbc1814e5 [diff] [blame] |
The exception recovery mechanism for the uninitialized_* algorithms did not work for iterators into discontiguous memory. llvm-svn: 147343
diff --git a/libcxx/include/algorithm b/libcxx/include/algorithm index 4679845..f9c6843 100644 --- a/libcxx/include/algorithm +++ b/libcxx/include/algorithm
@@ -4751,6 +4751,8 @@ while (true) { __restart: + if (__nth == __last) + return; difference_type __len = __last - __first; switch (__len) {