Skip to content

Commit 35b78c9

Browse files
committed
SILGen: Remove usage of weird ProtocolConformanceRef() constructor
1 parent fffabae commit 35b78c9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/SILGen/SILGenConcurrency.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -819,8 +819,7 @@ SILGenFunction::emitDistributedActorAsAnyActor(SILLocation loc,
819819
getDistributedActorAsActorConformance(ctx);
820820
auto actorProto = ctx.getProtocol(KnownProtocolKind::Actor);
821821
auto distributedActorType = distributedActorSubs.getReplacementTypes()[0];
822-
auto ref = ProtocolConformanceRef(
823-
actorProto, ctx.getSpecializedConformance(
822+
auto ref = ProtocolConformanceRef(ctx.getSpecializedConformance(
824823
distributedActorType, distributedActorAsActorConformance,
825824
distributedActorSubs));
826825
ProtocolConformanceRef conformances[1] = {ref};

0 commit comments

Comments
 (0)