[libcxx-commits] [libcxx] [libc++] Replace `__compressed_pair` with `[[no_unique_address]]` (PR #76756)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Sat Aug 31 00:43:51 PDT 2024


================
@@ -150,6 +176,11 @@
 // ABI impact: changes the iterator type of `vector` (except `vector<bool>`).
 // #define _LIBCPP_ABI_BOUNDED_ITERATORS_IN_VECTOR
 
+// [[msvc::no_unique_address]] seems to mostly affect empty classes, so the padding scheme for Itanium doesn't work.
----------------
philnik777 wrote:

Yes, we take the ABI break unconditionally on MSVC. It's currently not stable anyways, so we don't need to make our lives harder by trying to figure out how to avoid the ABI break on MSVC.

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


More information about the libcxx-commits mailing list