Skip to content

Commit b443266

Browse files
committed
[IRGen] Distributed: Start emitting distributed actor accessors for protocol requirements
1 parent 1e06448 commit b443266

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/IRGen/GenMeta.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -916,6 +916,12 @@ namespace {
916916
if (Resilient || IGM.getOptions().WitnessMethodElimination)
917917
IGM.emitDispatchThunk(func);
918918

919+
{
920+
auto *requirement = cast<AbstractFunctionDecl>(func.getDecl());
921+
if (requirement->isDistributed())
922+
IGM.emitDistributedTargetAccessor(requirement);
923+
}
924+
919925
// Classify the function.
920926
auto flags = getMethodDescriptorFlags<Flags>(func.getDecl());
921927

0 commit comments

Comments
 (0)