RequirementMachine: Move protocol linear order from ProtocolGraph to RewriteContext

This commit is contained in:
Slava Pestov
2021-10-21 18:58:18 -04:00
parent 941438d6c8
commit 0571b65cb8
16 changed files with 207 additions and 190 deletions

View File

@@ -501,7 +501,7 @@ void PropertyMap::concretizeNestedTypesFromConcreteParent(
// PropertyBag::getConformsToExcludingSuperclassConformances().
conformances.push_back(concrete);
auto assocTypes = Protos.getProtocolInfo(proto).AssociatedTypes;
auto assocTypes = proto->getAssociatedTypeMembers();
if (assocTypes.empty())
continue;
@@ -543,7 +543,7 @@ void PropertyMap::concretizeNestedTypesFromConcreteParent(
auto term = Context.getRelativeTermForType(t->getCanonicalType(),
substitutions);
System.simplify(term);
return Context.getTypeForTerm(term, { }, Protos);
return Context.getTypeForTerm(term, { });
}));
};