mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
IRGen: Initialize the executor field in continuation contexts again.
Fixes rdar://75783864.
This commit is contained in:
@@ -593,8 +593,11 @@ void IRGenFunction::emitGetAsyncContinuation(SILType resumeTy,
|
||||
contResultAddr->getType()->getPointerElementType()),
|
||||
Address(contResultAddr, pointerAlignment));
|
||||
}
|
||||
// FIXME:
|
||||
// continuation_context.resumeExecutor = // current executor
|
||||
auto executorAddr =
|
||||
Builder.CreateStructGEP(continuationContext.getAddress(), 4);
|
||||
auto executor = Builder.CreateCall(IGM.getTaskGetCurrentExecutorFn(), {});
|
||||
executorAddr = Builder.CreateBitCast(executorAddr, executor->getType()->getPointerTo());
|
||||
Builder.CreateStore(executor, executorAddr, pointerAlignment);
|
||||
|
||||
// Fill the current task (i.e the continuation) with the continuation
|
||||
// information.
|
||||
|
||||
Reference in New Issue
Block a user