@@ -423,7 +423,7 @@ class alignas(1 << DeclAlignInBits) Decl {
423423 HasNestedTypeDeclarations : 1
424424 );
425425
426- SWIFT_INLINE_BITFIELD (FuncDecl, AbstractFunctionDecl, 1 +1 +2 +1 +1 +2 +1 + 1 + 1 ,
426+ SWIFT_INLINE_BITFIELD (FuncDecl, AbstractFunctionDecl, 1 +1 +2 +1 +1 +2 +1 ,
427427 // / Whether we've computed the 'static' flag yet.
428428 IsStaticComputed : 1 ,
429429
@@ -442,12 +442,6 @@ class alignas(1 << DeclAlignInBits) Decl {
442442 // / Backing bits for 'self' access kind.
443443 SelfAccess : 2 ,
444444
445- // / Whether we've computed the IsAsyncHandlerRequest.
446- IsAsyncHandlerComputed : 1 ,
447-
448- // / The value of IsAsyncHandlerRequest.
449- IsAsyncHandler : 1 ,
450-
451445 // / Whether this is a top-level function which should be treated
452446 // / as if it were in local context for the purposes of capture
453447 // / analysis.
@@ -5849,16 +5843,9 @@ class AbstractFunctionDecl : public GenericContext, public ValueDecl {
58495843 // /
58505844 // / Functions that are an 'async' context can make calls to 'async' functions.
58515845 bool isAsyncContext () const {
5852- return hasAsync () || isAsyncHandler () ;
5846+ return hasAsync ();
58535847 }
58545848
5855- // / Returns true if the function is an @asyncHandler.
5856- bool isAsyncHandler () const ;
5857-
5858- // / Returns true if the function signature matches the form of an
5859- // / @asyncHandler.
5860- bool canBeAsyncHandler () const ;
5861-
58625849 // / Returns true if the function body throws.
58635850 bool hasThrows () const { return Bits.AbstractFunctionDecl .Throws ; }
58645851
@@ -6143,7 +6130,6 @@ class FuncDecl : public AbstractFunctionDecl {
61436130 friend class SelfAccessKindRequest ;
61446131 friend class IsStaticRequest ;
61456132 friend class ResultTypeRequest ;
6146- friend class IsAsyncHandlerRequest ;
61476133
61486134 SourceLoc StaticLoc; // Location of the 'static' token or invalid.
61496135 SourceLoc FuncLoc; // Location of the 'func' token.
@@ -6175,8 +6161,6 @@ class FuncDecl : public AbstractFunctionDecl {
61756161 Bits.FuncDecl .SelfAccessComputed = false ;
61766162 Bits.FuncDecl .IsStaticComputed = false ;
61776163 Bits.FuncDecl .IsStatic = false ;
6178- Bits.FuncDecl .IsAsyncHandlerComputed = false ;
6179- Bits.FuncDecl .IsAsyncHandler = false ;
61806164 Bits.FuncDecl .HasTopLevelLocalContextCaptures = false ;
61816165 }
61826166
@@ -6207,18 +6191,6 @@ class FuncDecl : public AbstractFunctionDecl {
62076191 return None;
62086192 }
62096193
6210- Optional<bool > getCachedIsAsyncHandler () const {
6211- if (Bits.FuncDecl .IsAsyncHandlerComputed )
6212- return Bits.FuncDecl .IsAsyncHandler ;
6213-
6214- return None;
6215- }
6216-
6217- void setIsAsyncHandler (bool value) {
6218- Bits.FuncDecl .IsAsyncHandlerComputed = true ;
6219- Bits.FuncDecl .IsAsyncHandler = value;
6220- }
6221-
62226194public:
62236195 // / Factory function only for use by deserialization.
62246196 static FuncDecl *createDeserialized (ASTContext &Context,
0 commit comments