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

Pavel Labath via libcxx-commits libcxx-commits at lists.llvm.org
Wed Oct 2 02:29:22 PDT 2024


labath wrote:

> To fix the alignment calculation, i _think_ we would need to either (1) emit `DW_AT_alignment` for packed structures (so we don't need the `InferAlignment` path anymore), or (2) adjust `InferAlignment` so it doesn't incorrectly assume a structure is packed (which is what I tried in #97443, but didn't complete). Happy to revive/discuss said PR.

That would be great. I've been ignoring that patch so far as the record layout builder is not my wheelhouse, but I'm going to comment on it now.

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


More information about the libcxx-commits mailing list