Skip to content

Commit 302b241

Browse files
committed
[Distributed] Runtime: Fix retrieval of async pointer from incorrect base
`accessor` represents a record as a whole, which means that async pointer to the entry point is located at `Function`.
1 parent 17c899a commit 302b241

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

stdlib/public/Concurrency/Actor.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2065,7 +2065,8 @@ void ::swift_distributed_execute_target(
20652065
return;
20662066

20672067
auto *asyncFnPtr = reinterpret_cast<
2068-
const AsyncFunctionPointer<DistributedAccessorSignature> *>(accessor);
2068+
const AsyncFunctionPointer<DistributedAccessorSignature> *>(
2069+
accessor->Function.get());
20692070

20702071
DistributedAccessorSignature::FunctionType *accessorEntry =
20712072
asyncFnPtr->Function.get();

0 commit comments

Comments
 (0)