[clang] [clang][bytecode][NFC] Add missing LLVM_PREFERRED_TYPE to bitfield (PR #128740)
Timm Baeder via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 25 08:39:49 PST 2025
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/128740
None
>From 885497707921ba8dd91164e1698b655cad965946 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Timm=20B=C3=A4der?= <tbaeder at redhat.com>
Date: Tue, 25 Feb 2025 17:38:44 +0100
Subject: [PATCH] [clang][bytecode][NFC] Add missing LLVM_PREFERRED_TYPE to
bitfield
---
clang/lib/AST/ByteCode/Descriptor.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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).
More information about the cfe-commits
mailing list