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(
85
85
86
86
for (auto req : sig.getRequirements ()) {
87
87
if (shouldSplitConcreteEquivalenceClass (req, sig)) {
88
- auto canType = sig->getSugaredType (
89
- sig.getCanonicalTypeInContext (
90
- req.getSecondType ()));
88
+ auto concreteType = sig->getConcreteType (req.getSecondType ());
91
89
92
90
Requirement firstReq (RequirementKind::SameType,
93
- req.getFirstType (), canType );
91
+ req.getFirstType (), concreteType );
94
92
Requirement secondReq (RequirementKind::SameType,
95
- req.getSecondType (), canType );
93
+ req.getSecondType (), concreteType );
96
94
requirements.push_back ({firstReq, SourceLoc (), /* inferred=*/ false });
97
95
requirements.push_back ({secondReq, SourceLoc (), /* inferred=*/ false });
98
96
continue ;
You can’t perform that action at this time.
0 commit comments