Skip to content

Commit 2b93515

Browse files
committed
[Index] Ignore internal conformances in serialized modules
The index should not output any internal conformances from a serialized module. Ideally these wouldn't be returned at all, but that can be addressed in a later patch. Resolves rdar://95460636.
1 parent 5788a2c commit 2b93515

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)