[clang] [llvm] [NFC] Address bit-field storage sizes to ensure ideal packing (PR #139825)
Oliver Hunt via cfe-commits
cfe-commits at lists.llvm.org
Thu May 15 15:11:42 PDT 2025
================
@@ -32,8 +33,9 @@ namespace llvm {
///
class BitCodeAbbrevOp {
uint64_t Val; // A literal value or data for an encoding.
- bool IsLiteral : 1; // Indicate whether this is a literal value or not.
- unsigned Enc : 3; // The encoding to use.
+ LLVM_PREFERRED_TYPE(bool)
+ uint64_t IsLiteral : 1; // Indicate whether this is a literal value or not.
+ uint64_t Enc : 3; // The encoding to use.
----------------
ojhunt wrote:
oh I just misread the diff, and what you were asking - and despite all that literally just made that change. #skilled
https://github.com/llvm/llvm-project/pull/139825
More information about the cfe-commits
mailing list