[clang] [clang] Add clang::debug_info_type attribute for bitfields (PR #69104)

Paul T Robinson via cfe-commits cfe-commits at lists.llvm.org
Sun Oct 15 12:41:59 PDT 2023


pogo59 wrote:

> Does this issue not apply to other platforms?

There is a deliberate layout/ABI choice that MSVC made ages ago and will never change. It will only pack bitfields into the same word if the neighboring bitfield declarations have the same base type. This is relatively well known.

That said, being able to attach an enum (or whatever) to the bitfield does seem handy, for any target.

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


More information about the cfe-commits mailing list