File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -103,6 +103,13 @@ AsyncContextLayout irgen::getAsyncContextLayout(
103
103
auto parameters = substitutedType->getParameters ();
104
104
SILFunctionConventions fnConv (substitutedType, IGF.getSILModule ());
105
105
106
+ auto addTaskContinuationFunction = [&]() {
107
+ auto ty = SILType ();
108
+ auto &ti = IGF.IGM .getTaskContinuationFunctionPtrTypeInfo ();
109
+ valTypes.push_back (ty);
110
+ typeInfos.push_back (&ti);
111
+ };
112
+
106
113
// AsyncContext * __ptrauth_swift_async_context_parent Parent;
107
114
{
108
115
auto ty = SILType ();
@@ -113,12 +120,7 @@ AsyncContextLayout irgen::getAsyncContextLayout(
113
120
114
121
// TaskContinuationFunction * __ptrauth_swift_async_context_resume
115
122
// ResumeParent;
116
- {
117
- auto ty = SILType ();
118
- auto &ti = IGF.IGM .getTaskContinuationFunctionPtrTypeInfo ();
119
- valTypes.push_back (ty);
120
- typeInfos.push_back (&ti);
121
- }
123
+ addTaskContinuationFunction ();
122
124
123
125
// ExecutorRef ResumeParentExecutor;
124
126
{
You can’t perform that action at this time.
0 commit comments