File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1227,9 +1227,8 @@ class AsyncPartialApplicationForwarderEmission
1227
1227
}
1228
1228
llvm::CallInst *createCall (FunctionPointer &fnPtr) override {
1229
1229
Explosion asyncExplosion;
1230
- asyncExplosion.add (llvm::Constant::getNullValue (subIGF.IGM .SwiftTaskPtrTy ));
1231
- asyncExplosion.add (
1232
- llvm::Constant::getNullValue (subIGF.IGM .SwiftExecutorPtrTy ));
1230
+ asyncExplosion.add (subIGF.getAsyncTask ());
1231
+ asyncExplosion.add (subIGF.getAsyncExecutor ());
1233
1232
asyncExplosion.add (contextBuffer);
1234
1233
if (dynamicFunction &&
1235
1234
dynamicFunction->kind == DynamicFunction::Kind::PartialApply) {
@@ -1308,6 +1307,7 @@ static llvm::Function *emitPartialApplicationForwarder(IRGenModule &IGM,
1308
1307
fwd->addAttributes (llvm::AttributeList::FunctionIndex, b);
1309
1308
1310
1309
IRGenFunction subIGF (IGM, fwd);
1310
+ subIGF.setAsync (origType->isAsync ());
1311
1311
if (IGM.DebugInfo )
1312
1312
IGM.DebugInfo ->emitArtificialFunction (subIGF, fwd);
1313
1313
You can’t perform that action at this time.
0 commit comments