@@ -351,7 +351,7 @@ class alignas(1 << DeclAlignInBits) Decl : public ASTAllocated<Decl> {
351351 // for the inline bitfields.
352352 union { uint64_t OpaqueBits;
353353
354- SWIFT_INLINE_BITFIELD_BASE (Decl, bitmax (NumDeclKindBits,8 )+1 +1 +1 +1 +1 ,
354+ SWIFT_INLINE_BITFIELD_BASE (Decl, bitmax (NumDeclKindBits,8 )+1 +1 +1 +1 +1 + 1 ,
355355 Kind : bitmax (NumDeclKindBits,8 ),
356356
357357 // / Whether this declaration is invalid.
@@ -374,7 +374,10 @@ class alignas(1 << DeclAlignInBits) Decl : public ASTAllocated<Decl> {
374374 // / a local context, but should behave like a top-level
375375 // / declaration for name lookup purposes. This is used by
376376 // / lldb.
377- Hoisted : 1
377+ Hoisted : 1 ,
378+
379+ // / Whether the set of semantic attributes has been computed.
380+ SemanticAttrsComputed : 1
378381 );
379382
380383 SWIFT_INLINE_BITFIELD_FULL (PatternBindingDecl, Decl, 1 +1 +2 +16 ,
@@ -1090,6 +1093,14 @@ class alignas(1 << DeclAlignInBits) Decl : public ASTAllocated<Decl> {
10901093 Bits.Decl .EscapedFromIfConfig = Escaped;
10911094 }
10921095
1096+ bool getSemanticAttrsComputed () const {
1097+ return Bits.Decl .SemanticAttrsComputed ;
1098+ }
1099+
1100+ void setSemanticAttrsComputed (bool Computed) {
1101+ Bits.Decl .SemanticAttrsComputed = Computed;
1102+ }
1103+
10931104 // / \returns the unparsed comment attached to this declaration.
10941105 RawComment getRawComment () const ;
10951106
0 commit comments