Remove some incorrect references to ExecutorRef

This commit is contained in:
John McCall
2021-03-28 22:05:37 -04:00
parent 30b4769c92
commit 6b36a9ac86
2 changed files with 2 additions and 8 deletions

View File

@@ -519,17 +519,12 @@ public:
TaskContinuationFunction * __ptrauth_swift_async_context_yield
YieldToParent;
/// The executor that the parent context needs to be yielded to on.
ExecutorRef YieldToParentExecutor;
YieldingAsyncContext(AsyncContextFlags flags,
TaskContinuationFunction *resumeParent,
TaskContinuationFunction *yieldToParent,
ExecutorRef yieldToParentExecutor,
AsyncContext *parent)
: AsyncContext(flags, resumeParent, parent),
YieldToParent(yieldToParent),
YieldToParentExecutor(yieldToParentExecutor) {}
YieldToParent(yieldToParent) {}
static bool classof(const AsyncContext *context) {
return context->Flags.getKind() == AsyncContextKind::Yielding;

View File

@@ -630,8 +630,7 @@ IRGenModule::IRGenModule(IRGenerator &irgen,
SwiftJobPtrTy = SwiftJobTy->getPointerTo(DefaultAS);
// using TaskContinuationFunction =
// SWIFT_CC(swift)
// void (AsyncTask *, ExecutorRef, AsyncContext *);
// SWIFT_CC(swift) void (SWIFT_ASYNC_CONTEXT AsyncContext *);
TaskContinuationFunctionTy = llvm::FunctionType::get(
VoidTy, {SwiftContextPtrTy}, /*isVarArg*/ false);
TaskContinuationFunctionPtrTy = TaskContinuationFunctionTy->getPointerTo();