[clang] 866e073 - [clang][NFC] Annotate `CGRecordLayout.h` with `preferred_type`
Vlad Serebrennikov via cfe-commits
cfe-commits at lists.llvm.org
Sun Feb 11 01:14:41 PST 2024
Author: Vlad Serebrennikov
Date: 2024-02-11T12:14:31+03:00
New Revision: 866e073c2851bd4180cc0c64ce5a3d7f109e21dc
URL: https://github.com/llvm/llvm-project/commit/866e073c2851bd4180cc0c64ce5a3d7f109e21dc
DIFF: https://github.com/llvm/llvm-project/commit/866e073c2851bd4180cc0c64ce5a3d7f109e21dc.diff
LOG: [clang][NFC] Annotate `CGRecordLayout.h` with `preferred_type`
This helps debuggers to display values in bit-fields in a more helpful way.
Added:
Modified:
clang/lib/CodeGen/CGRecordLayout.h
Removed:
################################################################################
diff --git a/clang/lib/CodeGen/CGRecordLayout.h b/clang/lib/CodeGen/CGRecordLayout.h
index d5ea74922603b..6c06ad20fbe56 100644
--- a/clang/lib/CodeGen/CGRecordLayout.h
+++ b/clang/lib/CodeGen/CGRecordLayout.h
@@ -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
More information about the cfe-commits
mailing list