File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -2196,9 +2196,16 @@ class AsyncCallEmission final : public CallEmission {
2196
2196
super::setArgs (asyncExplosion, false , witnessMetadata);
2197
2197
SILFunctionConventions fnConv (getCallee ().getSubstFunctionType (),
2198
2198
IGF.getSILModule ());
2199
+ auto layout = getAsyncContextLayout ();
2199
2200
2201
+ // Set caller info into the context.
2202
+ { // caller context
2203
+ Explosion explosion;
2204
+ explosion.add (IGF.getAsyncContext ());
2205
+ auto fieldLayout = layout.getParentLayout ();
2206
+ saveValue (fieldLayout, explosion, isOutlined);
2207
+ }
2200
2208
// Move all the arguments into the context.
2201
- auto layout = getAsyncContextLayout ();
2202
2209
for (unsigned index = 0 , count = layout.getIndirectReturnCount ();
2203
2210
index < count; ++index) {
2204
2211
auto fieldLayout = layout.getIndirectReturnLayout (index);
You can’t perform that action at this time.
0 commit comments