Skip to content

Commit 0bd8b14

Browse files
authored
[AST] Fix declaration bitfields. (#33567)
Fix total bit count for Decl and AbstractFunctionDecl bitfields.
1 parent 6a7b38d commit 0bd8b14

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/swift/AST/Decl.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ class alignas(1 << DeclAlignInBits) Decl {
283283
protected:
284284
union { uint64_t OpaqueBits;
285285

286-
SWIFT_INLINE_BITFIELD_BASE(Decl, bitmax(NumDeclKindBits,8)+1+1+1+1+1,
286+
SWIFT_INLINE_BITFIELD_BASE(Decl, bitmax(NumDeclKindBits,8)+1+1+1+1,
287287
Kind : bitmax(NumDeclKindBits,8),
288288

289289
/// Whether this declaration is invalid.
@@ -385,7 +385,7 @@ class alignas(1 << DeclAlignInBits) Decl {
385385
SWIFT_INLINE_BITFIELD(SubscriptDecl, VarDecl, 2,
386386
StaticSpelling : 2
387387
);
388-
SWIFT_INLINE_BITFIELD(AbstractFunctionDecl, ValueDecl, 3+8+1+1+1+1+1+1+1,
388+
SWIFT_INLINE_BITFIELD(AbstractFunctionDecl, ValueDecl, 3+8+1+1+1+1+1+1,
389389
/// \see AbstractFunctionDecl::BodyKind
390390
BodyKind : 3,
391391

0 commit comments

Comments
 (0)