diff --git a/libcxx/include/string b/libcxx/include/string --- a/libcxx/include/string +++ b/libcxx/include/string @@ -614,21 +614,6 @@ !is_convertible::value > {}; -#ifdef _LIBCPP_ABI_ALTERNATE_STRING_LAYOUT - -template -struct __padding -{ - unsigned char __xx[sizeof(_CharT)-1]; -}; - -template -struct __padding<_CharT, 1> -{ -}; - -#endif // _LIBCPP_ABI_ALTERNATE_STRING_LAYOUT - #ifndef _LIBCPP_HAS_NO_CHAR8_T typedef basic_string u8string; #endif @@ -702,11 +687,8 @@ struct __short { value_type __data_[__min_cap]; - struct - : __padding - { - unsigned char __size_; - }; + unsigned char __padding[sizeof(value_type) - 1]; + unsigned char __size_; }; #else