Skip to content

Commit

Permalink
[clang][NFC] Annotate CGRecordLayout.h with preferred_type
Browse files Browse the repository at this point in the history
This helps debuggers to display values in bit-fields in a more helpful way.
  • Loading branch information
Endilll committed Feb 11, 2024
1 parent 35737be commit 866e073
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions clang/lib/CodeGen/CGRecordLayout.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ struct CGBitFieldInfo {
unsigned Size : 15;

/// Whether the bit-field is signed.
LLVM_PREFERRED_TYPE(bool)
unsigned IsSigned : 1;

/// The storage size in bits which should be used when accessing this
Expand Down

0 comments on commit 866e073

Please sign in to comment.