[clang] 4dd29eb - [clang][bytecode][NFC] Move incorrect LLVM_PREFERRED_TYPE attribute (#128740)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 3 10:37:26 PST 2025
Author: Timm Baeder
Date: 2025-03-03T19:37:22+01:00
New Revision: 4dd29ebb8dc563be37244612f44537e8eff33c32
URL: https://github.com/llvm/llvm-project/commit/4dd29ebb8dc563be37244612f44537e8eff33c32
DIFF: https://github.com/llvm/llvm-project/commit/4dd29ebb8dc563be37244612f44537e8eff33c32.diff
LOG: [clang][bytecode][NFC] Move incorrect LLVM_PREFERRED_TYPE attribute (#128740)
Looks like this was accidentally added after the bitfield and thus
didn't work.
Added:
Modified:
clang/lib/AST/ByteCode/Descriptor.h
Removed:
################################################################################
diff --git a/clang/lib/AST/ByteCode/Descriptor.h b/clang/lib/AST/ByteCode/Descriptor.h
index b2e9f1b6bded4..8ce99731ee0ae 100644
--- a/clang/lib/AST/ByteCode/Descriptor.h
+++ b/clang/lib/AST/ByteCode/Descriptor.h
@@ -95,9 +95,9 @@ 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).
- unsigned InUnion : 1;
+ /// Flag indicating if this field is in a union (even if nested).
LLVM_PREFERRED_TYPE(bool)
+ unsigned InUnion : 1;
/// Flag indicating if the field is mutable (if in a record).
LLVM_PREFERRED_TYPE(bool)
unsigned IsFieldMutable : 1;
More information about the cfe-commits
mailing list