[Concurrency] Throwing continuation type should be typed as SwiftError

This commit is contained in:
Pavel Yaskevich
2021-12-22 11:40:27 -08:00
parent e32105eb44
commit 774622823c
2 changed files with 3 additions and 2 deletions

View File

@@ -214,7 +214,7 @@ struct AsyncContinuationTypeImpl<
AsyncSignature<void(ArgTys...), /*throws=*/true>> {
using type = SWIFT_CC(swiftasync) void(SWIFT_ASYNC_CONTEXT AsyncContext *,
SWIFT_CONTEXT void *);
SWIFT_CONTEXT SwiftError *);
};
template <class... ArgTys>

View File

@@ -1709,7 +1709,8 @@ static DistributedAccessorSignature::ContinuationType
SWIFT_CC(swiftasync)
static void ::swift_distributed_execute_target_resume(
SWIFT_ASYNC_CONTEXT AsyncContext *context, SWIFT_CONTEXT void *error) {
SWIFT_ASYNC_CONTEXT AsyncContext *context,
SWIFT_CONTEXT SwiftError *error) {
auto parentCtx = context->Parent;
auto resumeInParent =
reinterpret_cast<TargetExecutorSignature::ContinuationType *>(