File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -1694,12 +1694,15 @@ void Serializer::writeLocalNormalProtocolConformance(
1694
1694
SmallVector<DeclID, 32 > data;
1695
1695
unsigned numValueWitnesses = 0 ;
1696
1696
unsigned numTypeWitnesses = 0 ;
1697
- unsigned numSignatureConformances =
1698
- conformance->getSignatureConformances ().size ();
1699
-
1700
- for (auto sigConformance : conformance->getSignatureConformances ()) {
1701
- data.push_back (addConformanceRef (sigConformance));
1702
- }
1697
+ unsigned numSignatureConformances = 0 ;
1698
+
1699
+ conformance->forEachAssociatedConformance (
1700
+ [&](Type t, ProtocolDecl *proto, unsigned index) {
1701
+ auto assocConf = conformance->getAssociatedConformance (t, proto);
1702
+ data.push_back (addConformanceRef (assocConf));
1703
+ ++numSignatureConformances;
1704
+ return false ;
1705
+ });
1703
1706
1704
1707
conformance->forEachTypeWitness ([&](AssociatedTypeDecl *assocType,
1705
1708
Type type, TypeDecl *typeDecl) {
You can’t perform that action at this time.
0 commit comments