[clang] [clang][bytecode][NFC] Add missing LLVM_PREFERRED_TYPE to bitfield (PR #128740)

via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 25 08:40:27 PST 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: Timm Baeder (tbaederr)

<details>
<summary>Changes</summary>



---
Full diff: https://github.com/llvm/llvm-project/pull/128740.diff


1 Files Affected:

- (modified) clang/lib/AST/ByteCode/Descriptor.h (+2-1) 


``````````diff
diff --git a/clang/lib/AST/ByteCode/Descriptor.h b/clang/lib/AST/ByteCode/Descriptor.h
index 01fa4b198de67..57940e45b8ae3 100644
--- a/clang/lib/AST/ByteCode/Descriptor.h
+++ b/clang/lib/AST/ByteCode/Descriptor.h
@@ -95,7 +95,8 @@ struct InlineDescriptor {
   /// Flag indicating if the field is the active member of a union.
   LLVM_PREFERRED_TYPE(bool)
   unsigned IsActive : 1;
-  /// Flat indicating if this field is in a union (even if nested).
+  /// Flag indicating if this field is in a union (even if nested).
+  LLVM_PREFERRED_TYPE(bool)
   unsigned InUnion : 1;
   LLVM_PREFERRED_TYPE(bool)
   /// Flag indicating if the field is mutable (if in a record).

``````````

</details>


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


More information about the cfe-commits mailing list