Skip to content

Commit 866e073

Browse files
committed
[clang][NFC] Annotate CGRecordLayout.h with preferred_type
This helps debuggers to display values in bit-fields in a more helpful way.
1 parent 35737be commit 866e073

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clang/lib/CodeGen/CGRecordLayout.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ struct CGBitFieldInfo {
7171
unsigned Size : 15;
7272

7373
/// Whether the bit-field is signed.
74+
LLVM_PREFERRED_TYPE(bool)
7475
unsigned IsSigned : 1;
7576

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

0 commit comments

Comments
 (0)