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

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Tue Sep 17 03:41:38 PDT 2024


philnik777 wrote:

@mstorsjo it looks like the problem is just that we don't initialize the padding: https://godbolt.org/z/ErETWTdoc. Could you check that this fixes your problem too? Initializing the padding bytes seems fairly low cost, especially since the common cases don't actually have any padding bytes (`basic_string<T>`, `vector<T>`, `unique_ptr<T>`).


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


More information about the libcxx-commits mailing list