[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 13:21:43 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 weird, I wonder how/why I ended up reordering this - I don't recall doing so intentionally :-O

https://github.com/llvm/llvm-project/pull/139825


More information about the cfe-commits mailing list