@@ -357,7 +357,7 @@ class alignas(1 << DeclAlignInBits) Decl : public ASTAllocated<Decl> {
357357 // for the inline bitfields.
358358 union { uint64_t OpaqueBits;
359359
360- SWIFT_INLINE_BITFIELD_BASE (Decl, bitmax (NumDeclKindBits,8 )+1 +1 +1 +1 +1 +1 +1 +1 ,
360+ SWIFT_INLINE_BITFIELD_BASE (Decl, bitmax (NumDeclKindBits,8 )+1 +1 +1 +1 +1 +1 +1 +1 + 1 ,
361361 Kind : bitmax (NumDeclKindBits,8 ),
362362
363363 // / Whether this declaration is invalid.
@@ -392,7 +392,11 @@ class alignas(1 << DeclAlignInBits) Decl : public ASTAllocated<Decl> {
392392
393393 // / True if we're in the common case where the ExpandMemberAttributeMacros
394394 // / request returned an empty array.
395- NoMemberAttributeMacros : 1
395+ NoMemberAttributeMacros : 1 ,
396+
397+ // / True if we're in the common case where the GlobalActorAttributeRequest
398+ // / request returned a pair of null pointers.
399+ NoGlobalActorAttribute : 1
396400 );
397401
398402 SWIFT_INLINE_BITFIELD_FULL (PatternBindingDecl, Decl, 1 +1 +2 +16 ,
@@ -832,6 +836,7 @@ class alignas(1 << DeclAlignInBits) Decl : public ASTAllocated<Decl> {
832836 friend class DeclDeserializer ;
833837 friend class RawCommentRequest ;
834838 friend class ExpandMemberAttributeMacros ;
839+ friend class GlobalActorAttributeRequest ;
835840
836841private:
837842 llvm::PointerUnion<DeclContext *, ASTContext *> Context;
@@ -858,6 +863,14 @@ class alignas(1 << DeclAlignInBits) Decl : public ASTAllocated<Decl> {
858863 Bits.Decl .NoMemberAttributeMacros = true ;
859864 }
860865
866+ bool hasNoGlobalActorAttribute () const {
867+ return Bits.Decl .NoGlobalActorAttribute ;
868+ }
869+
870+ void setHasNoGlobalActorAttribute () {
871+ Bits.Decl .NoGlobalActorAttribute = true ;
872+ }
873+
861874protected:
862875
863876 Decl (DeclKind kind, llvm::PointerUnion<DeclContext *, ASTContext *> context)
@@ -871,6 +884,7 @@ class alignas(1 << DeclAlignInBits) Decl : public ASTAllocated<Decl> {
871884 Bits.Decl .Hoisted = false ;
872885 Bits.Decl .LacksObjCInterfaceOrImplementation = false ;
873886 Bits.Decl .NoMemberAttributeMacros = false ;
887+ Bits.Decl .NoGlobalActorAttribute = false ;
874888 }
875889
876890 // / Get the Clang node associated with this declaration.
0 commit comments