[clang] [libcxx] [clang] Add builtin to clear padding bytes (prework for P0528R3) (PR #75371)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 3 05:26:39 PDT 2024
huixie90 wrote:
> If you want to modify part of a bitfield unit, you need to load/store the whole bitfield unit, as computed by the CGRecordLayout. This is true whether you're modifying an actual field, or padding adjacent to a field. Since any padding has to be adjacent to a bitfield, you can get the relevant information out of the CGBitFieldInfo for that bitfield.
Hello, this is now working with the bitfield. Iterating over the field of a struct also gives me information about where bit fields are
https://github.com/llvm/llvm-project/pull/75371
More information about the cfe-commits
mailing list