Skip to content

Commit b2ff3c9

Browse files
committed
SILOptimizer: Clean up emitDistributedActorSystemWitnessCall()
1 parent b41f32d commit b2ff3c9

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

lib/SILOptimizer/Utils/DistributedActor.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,7 @@ void emitDistributedActorSystemWitnessCall(
4848
OpenedExistentialAccess::Immutable);
4949
}
5050

51-
if (systemASTType->isTypeParameter() || systemASTType->is<ArchetypeType>()) {
52-
systemConfRef = ProtocolConformanceRef(DAS);
53-
} else {
54-
systemConfRef = lookupConformance(systemASTType, DAS);
55-
}
56-
51+
systemConfRef = lookupConformance(systemASTType, DAS);
5752
assert(!systemConfRef.isInvalid() &&
5853
"Missing conformance to `DistributedActorSystem`");
5954

0 commit comments

Comments
 (0)