Skip to content

Commit 6b36a9a

Browse files
committed
Remove some incorrect references to ExecutorRef
1 parent 30b4769 commit 6b36a9a

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

include/swift/ABI/Task.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -519,17 +519,12 @@ class YieldingAsyncContext : public AsyncContext {
519519
TaskContinuationFunction * __ptrauth_swift_async_context_yield
520520
YieldToParent;
521521

522-
/// The executor that the parent context needs to be yielded to on.
523-
ExecutorRef YieldToParentExecutor;
524-
525522
YieldingAsyncContext(AsyncContextFlags flags,
526523
TaskContinuationFunction *resumeParent,
527524
TaskContinuationFunction *yieldToParent,
528-
ExecutorRef yieldToParentExecutor,
529525
AsyncContext *parent)
530526
: AsyncContext(flags, resumeParent, parent),
531-
YieldToParent(yieldToParent),
532-
YieldToParentExecutor(yieldToParentExecutor) {}
527+
YieldToParent(yieldToParent) {}
533528

534529
static bool classof(const AsyncContext *context) {
535530
return context->Flags.getKind() == AsyncContextKind::Yielding;

lib/IRGen/IRGenModule.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -630,8 +630,7 @@ IRGenModule::IRGenModule(IRGenerator &irgen,
630630
SwiftJobPtrTy = SwiftJobTy->getPointerTo(DefaultAS);
631631

632632
// using TaskContinuationFunction =
633-
// SWIFT_CC(swift)
634-
// void (AsyncTask *, ExecutorRef, AsyncContext *);
633+
// SWIFT_CC(swift) void (SWIFT_ASYNC_CONTEXT AsyncContext *);
635634
TaskContinuationFunctionTy = llvm::FunctionType::get(
636635
VoidTy, {SwiftContextPtrTy}, /*isVarArg*/ false);
637636
TaskContinuationFunctionPtrTy = TaskContinuationFunctionTy->getPointerTo();

0 commit comments

Comments
 (0)