Skip to content

Commit b333fb1

Browse files
committed
IRGen: isDependentConformance() can skip protocols without witness tables
1 parent 0f30686 commit b333fb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/IRGen/GenProto.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -989,7 +989,7 @@ static bool isDependentConformance(
989989
continue;
990990

991991
auto assocProtocol = req.getProtocolDecl();
992-
if (assocProtocol->isObjC())
992+
if (!Lowering::TypeConverter::protocolRequiresWitnessTable(assocProtocol))
993993
continue;
994994

995995
auto assocConformance =

0 commit comments

Comments
 (0)