File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -3316,6 +3316,14 @@ class AsyncCallEmission final : public CallEmission {
3316
3316
break ;
3317
3317
}
3318
3318
}
3319
+
3320
+ // If we're passing the continuation directly, add those implicit
3321
+ // arguments.
3322
+ if (getCallee ().shouldPassContinuationDirectly ()) {
3323
+ asyncExplosion.add (getResumeFunctionPointer ());
3324
+ asyncExplosion.add (getAsyncContext ());
3325
+ }
3326
+
3319
3327
super::setArgs (asyncExplosion, false , witnessMetadata);
3320
3328
3321
3329
auto layout = getAsyncContextLayout ();
Original file line number Diff line number Diff line change @@ -3911,11 +3911,6 @@ void IRGenSILFunction::visitFullApplySite(FullApplySite site) {
3911
3911
}
3912
3912
}
3913
3913
3914
- if (calleeFP.shouldPassContinuationDirectly ()) {
3915
- llArgs.add (emission->getResumeFunctionPointer ());
3916
- llArgs.add (emission->getAsyncContext ());
3917
- }
3918
-
3919
3914
// Add all those arguments.
3920
3915
emission->setArgs (llArgs, false , &witnessMetadata);
3921
3916
You can’t perform that action at this time.
0 commit comments