Skip to content

Commit 7746228

Browse files
committed
[Concurrency] Throwing continuation type should be typed as SwiftError
1 parent e32105e commit 7746228

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

include/swift/ABI/Executor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ struct AsyncContinuationTypeImpl<
214214
AsyncSignature<void(ArgTys...), /*throws=*/true>> {
215215

216216
using type = SWIFT_CC(swiftasync) void(SWIFT_ASYNC_CONTEXT AsyncContext *,
217-
SWIFT_CONTEXT void *);
217+
SWIFT_CONTEXT SwiftError *);
218218
};
219219

220220
template <class... ArgTys>

stdlib/public/Concurrency/Actor.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1709,7 +1709,8 @@ static DistributedAccessorSignature::ContinuationType
17091709

17101710
SWIFT_CC(swiftasync)
17111711
static void ::swift_distributed_execute_target_resume(
1712-
SWIFT_ASYNC_CONTEXT AsyncContext *context, SWIFT_CONTEXT void *error) {
1712+
SWIFT_ASYNC_CONTEXT AsyncContext *context,
1713+
SWIFT_CONTEXT SwiftError *error) {
17131714
auto parentCtx = context->Parent;
17141715
auto resumeInParent =
17151716
reinterpret_cast<TargetExecutorSignature::ContinuationType *>(

0 commit comments

Comments
 (0)