diff options
Diffstat (limited to 'libcxx/include/string')
| -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 4f05e211919f..67c4c537eb3b 100644 --- a/libcxx/include/string +++ b/libcxx/include/string @@ -3434,8 +3434,8 @@ inline _LIBCPP_CONSTEXPR_SINCE_CXX20 void basic_string<_CharT, _Traits, _Allocat if (__fits_in_sso(__target_capacity)) { __annotation_guard __g(*this); - traits_type::copy(std::__to_address(__get_short_pointer()), std::__to_address(__ptr), __size + 1); __set_short_size(__size); + traits_type::copy(std::__to_address(__get_short_pointer()), std::__to_address(__ptr), __size + 1); __alloc_traits::deallocate(__alloc_, __ptr, __cap); return; } |
