@@ -5924,23 +5924,24 @@ static bool hasCurriedSelf(ConstraintSystem &cs, ConcreteDeclRef callee,
59245924// / Apply the contextually Sendable flag to the given expression,
59255925static void applyContextualClosureFlags (Expr *expr, bool implicitSelfCapture,
59265926 bool inheritActorContext,
5927- bool isSendingParameter ) {
5927+ bool isPassedToSendingParameter ) {
59285928 if (auto closure = dyn_cast<ClosureExpr>(expr)) {
59295929 closure->setAllowsImplicitSelfCapture (implicitSelfCapture);
59305930 closure->setInheritsActorContext (inheritActorContext);
5931- closure->setSendingParameter (isSendingParameter );
5931+ closure->setIsPassedToSendingParameter (isPassedToSendingParameter );
59325932 return ;
59335933 }
59345934
59355935 if (auto captureList = dyn_cast<CaptureListExpr>(expr)) {
59365936 applyContextualClosureFlags (captureList->getClosureBody (),
59375937 implicitSelfCapture, inheritActorContext,
5938- isSendingParameter );
5938+ isPassedToSendingParameter );
59395939 }
59405940
59415941 if (auto identity = dyn_cast<IdentityExpr>(expr)) {
59425942 applyContextualClosureFlags (identity->getSubExpr (), implicitSelfCapture,
5943- inheritActorContext, isSendingParameter);
5943+ inheritActorContext,
5944+ isPassedToSendingParameter);
59445945 }
59455946}
59465947
@@ -6168,10 +6169,12 @@ ArgumentList *ExprRewriter::coerceCallArguments(
61686169 // implicit self capture or inheriting actor context.
61696170 bool isImplicitSelfCapture = paramInfo.isImplicitSelfCapture (paramIdx);
61706171 bool inheritsActorContext = paramInfo.inheritsActorContext (paramIdx);
6171- bool isSendingParameter = paramInfo.isSendingParameter (paramIdx);
6172+ bool isPassedToSendingParameter =
6173+ paramInfo.isPassedToSendingParameter (paramIdx);
61726174
61736175 applyContextualClosureFlags (argExpr, isImplicitSelfCapture,
6174- inheritsActorContext, isSendingParameter);
6176+ inheritsActorContext,
6177+ isPassedToSendingParameter);
61756178
61766179 // If the types exactly match, this is easy.
61776180 auto paramType = param.getOldType ();
0 commit comments