File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
lib/AST/RequirementMachine Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -85,14 +85,12 @@ static void splitConcreteEquivalenceClasses(
8585
8686 for (auto req : sig.getRequirements ()) {
8787 if (shouldSplitConcreteEquivalenceClass (req, sig)) {
88- auto canType = sig->getSugaredType (
89- sig.getCanonicalTypeInContext (
90- req.getSecondType ()));
88+ auto concreteType = sig->getConcreteType (req.getSecondType ());
9189
9290 Requirement firstReq (RequirementKind::SameType,
93- req.getFirstType (), canType );
91+ req.getFirstType (), concreteType );
9492 Requirement secondReq (RequirementKind::SameType,
95- req.getSecondType (), canType );
93+ req.getSecondType (), concreteType );
9694 requirements.push_back ({firstReq, SourceLoc (), /* inferred=*/ false });
9795 requirements.push_back ({secondReq, SourceLoc (), /* inferred=*/ false });
9896 continue ;
You can’t perform that action at this time.
0 commit comments