Skip to content

Commit 43ab8dc

Browse files
Merge pull request #84256 from swiftlang/jepa-main4
APIDigester: Sort conformances when dumping sdk
2 parents d8879e6 + e101d0a commit 43ab8dc

File tree

4 files changed

+393
-390
lines changed

4 files changed

+393
-390
lines changed

lib/APIDigester/ModuleAnalyzerNodes.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1988,7 +1988,7 @@ SwiftDeclCollector::addConformancesToTypeDecl(SDKNodeDeclType *Root,
19881988
} else {
19891989
// Avoid adding the same conformance twice.
19901990
SmallPtrSet<ProtocolConformance*, 4> Seen;
1991-
for (auto &Conf: NTD->getAllConformances()) {
1991+
for (auto &Conf: NTD->getAllConformances(/*sorted=*/true)) {
19921992
if (!Ctx.shouldIgnore(Conf->getProtocol()) && !Seen.count(Conf))
19931993
Root->addConformance(constructConformanceNode(Conf));
19941994
Seen.insert(Conf);

0 commit comments

Comments
 (0)