Skip to content

Commit b254dc2

Browse files
committed
PrintAsClang: Stop calling getAllConformances() on protocols
1 parent ecc552f commit b254dc2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/PrintAsClang/DeclAndTypePrinter.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1742,6 +1742,9 @@ class DeclAndTypePrinter::Implementation
17421742
if (nominal->hasClangNode())
17431743
return nullptr;
17441744

1745+
if (isa<ProtocolDecl>(nominal))
1746+
return nullptr;
1747+
17451748
auto &ctx = nominal->getASTContext();
17461749

17471750
// Dig out the ObjectiveCBridgeable protocol.

0 commit comments

Comments
 (0)