@@ -5965,23 +5965,24 @@ static bool hasCurriedSelf(ConstraintSystem &cs, ConcreteDeclRef callee,
59655965// / Apply the contextually Sendable flag to the given expression,
59665966static void applyContextualClosureFlags (Expr *expr, bool implicitSelfCapture,
59675967 bool inheritActorContext,
5968- bool isSendingParameter ) {
5968+ bool isPassedToSendingParameter ) {
59695969 if (auto closure = dyn_cast<ClosureExpr>(expr)) {
59705970 closure->setAllowsImplicitSelfCapture (implicitSelfCapture);
59715971 closure->setInheritsActorContext (inheritActorContext);
5972- closure->setSendingParameter (isSendingParameter );
5972+ closure->setIsPassedToSendingParameter (isPassedToSendingParameter );
59735973 return ;
59745974 }
59755975
59765976 if (auto captureList = dyn_cast<CaptureListExpr>(expr)) {
59775977 applyContextualClosureFlags (captureList->getClosureBody (),
59785978 implicitSelfCapture, inheritActorContext,
5979- isSendingParameter );
5979+ isPassedToSendingParameter );
59805980 }
59815981
59825982 if (auto identity = dyn_cast<IdentityExpr>(expr)) {
59835983 applyContextualClosureFlags (identity->getSubExpr (), implicitSelfCapture,
5984- inheritActorContext, isSendingParameter);
5984+ inheritActorContext,
5985+ isPassedToSendingParameter);
59855986 }
59865987}
59875988
@@ -6209,10 +6210,12 @@ ArgumentList *ExprRewriter::coerceCallArguments(
62096210 // implicit self capture or inheriting actor context.
62106211 bool isImplicitSelfCapture = paramInfo.isImplicitSelfCapture (paramIdx);
62116212 bool inheritsActorContext = paramInfo.inheritsActorContext (paramIdx);
6212- bool isSendingParameter = paramInfo.isSendingParameter (paramIdx);
6213+ bool isPassedToSendingParameter =
6214+ paramInfo.isPassedToSendingParameter (paramIdx);
62136215
62146216 applyContextualClosureFlags (argExpr, isImplicitSelfCapture,
6215- inheritsActorContext, isSendingParameter);
6217+ inheritsActorContext,
6218+ isPassedToSendingParameter);
62166219
62176220 // If the types exactly match, this is easy.
62186221 auto paramType = param.getOldType ();
0 commit comments