Skip to content

Commit 6907b10

Browse files
authored
Merge pull request #60004 from bnbarham/index-crash
[Index] Ignore internal conformances in serialized modules
2 parents 02a3816 + 2b93515 commit 6907b10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Index/Index.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1158,7 +1158,7 @@ bool IndexSwiftASTWalker::handleWitnesses(Decl *D, SmallVectorImpl<IndexedWitnes
11581158

11591159
// Ignore self-conformances; they're not interesting to show to users.
11601160
auto normal = dyn_cast<NormalProtocolConformance>(conf->getRootConformance());
1161-
if (!normal)
1161+
if (!normal || !shouldIndex(normal->getProtocol(), /*IsRef=*/true))
11621162
continue;
11631163

11641164
normal->forEachValueWitness([&](ValueDecl *req, Witness witness) {

0 commit comments

Comments
 (0)