Skip to content

Commit 4e39455

Browse files
authored
Update ProtocolConformance.cpp
1 parent 1ca2b61 commit 4e39455

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

stdlib/public/runtime/ProtocolConformance.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -527,8 +527,11 @@ namespace {
527527
return nullptr;
528528

529529
auto proto = existentialType->getProtocols()[0];
530+
531+
#if SWIFT_OBJC_INTEROP
530532
if (proto.isObjC())
531533
return nullptr;
534+
#endif
532535

533536
return proto.getSwiftProtocol();
534537
}

0 commit comments

Comments
 (0)