File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -109,6 +109,12 @@ AsyncContextLayout irgen::getAsyncContextLayout(
109
109
valTypes.push_back (ty);
110
110
typeInfos.push_back (&ti);
111
111
};
112
+ auto addExecutor = [&]() {
113
+ auto ty = SILType ();
114
+ auto &ti = IGF.IGM .getSwiftExecutorPtrTypeInfo ();
115
+ valTypes.push_back (ty);
116
+ typeInfos.push_back (&ti);
117
+ };
112
118
113
119
// AsyncContext * __ptrauth_swift_async_context_parent Parent;
114
120
{
@@ -123,12 +129,7 @@ AsyncContextLayout irgen::getAsyncContextLayout(
123
129
addTaskContinuationFunction ();
124
130
125
131
// ExecutorRef ResumeParentExecutor;
126
- {
127
- auto ty = SILType ();
128
- auto &ti = IGF.IGM .getSwiftExecutorPtrTypeInfo ();
129
- valTypes.push_back (ty);
130
- typeInfos.push_back (&ti);
131
- }
132
+ addExecutor ();
132
133
133
134
// SwiftError *errorResult;
134
135
auto errorCanType = IGF.IGM .Context .getExceptionType ();
You can’t perform that action at this time.
0 commit comments