Skip to content

Commit 11b45ca

Browse files
committed
RequirementMachine: splitConcreteEquivalenceClass() uses getConcreteType() instead of getCanonicalTypeInContext()
1 parent 24b6624 commit 11b45ca

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

lib/AST/RequirementMachine/RequirementMachineRequests.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)