We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb6d47e commit 89382f7Copy full SHA for 89382f7
lib/ParseSIL/ParseSIL.cpp
@@ -951,10 +951,10 @@ void SILParser::convertRequirements(SILFunction *F,
951
}
952
953
if (Req.getKind() == RequirementReprKind::TypeConstraint) {
954
- auto FirstType = ResolveToInterfaceType(Req.getFirstTypeLoc());
955
- auto SecondType = ResolveToInterfaceType(Req.getSecondTypeLoc());
956
- Requirement ConvertedRequirement(RequirementKind::Conformance, FirstType,
957
- SecondType);
+ auto Subject = ResolveToInterfaceType(Req.getSubjectLoc());
+ auto Constraint = ResolveToInterfaceType(Req.getConstraintLoc());
+ Requirement ConvertedRequirement(RequirementKind::Conformance, Subject,
+ Constraint);
958
To.push_back(ConvertedRequirement);
959
continue;
960
0 commit comments