[llvm] [libc++] Ensure that `std::expected` has no tail padding (PR #69673)

Jan Kokemüller via llvm-commits llvm-commits at lists.llvm.org
Sat Oct 21 05:24:30 PDT 2023


================
@@ -1552,8 +1570,56 @@ class expected<_Tp, _Err> {
     _LIBCPP_NO_UNIQUE_ADDRESS _ErrorType __unex_;
   };
 
-  _LIBCPP_NO_UNIQUE_ADDRESS __union_t<_Err> __union_;
-  bool __has_val_;
+  struct __expected_repr {
----------------
jiixyj wrote:

done!

https://github.com/llvm/llvm-project/pull/69673


More information about the llvm-commits mailing list