diff options
Diffstat (limited to 'libcxx/include')
-rw-r--r-- | libcxx/include/string | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/include/string b/libcxx/include/string index 8adf6d97c00..3368fb8bfcd 100644 --- a/libcxx/include/string +++ b/libcxx/include/string @@ -2260,7 +2260,7 @@ basic_string<_CharT, _Traits, _Allocator>::operator=(const basic_string& __str) if (this != &__str) { __copy_assign_alloc(__str); - assign(__str.data(), __str.size()); + return assign(__str.data(), __str.size()); } return *this; } |