Skip to content

Commit eb13640

Browse files
authored
Merge pull request #21347 from slavapestov/ranking-experiment
Sema: Try removing isConvertibleTo() check from solution ranking
2 parents 755321f + 181f26d commit eb13640

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

lib/Sema/CSRanking.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1133,17 +1133,6 @@ SolutionCompareResult ConstraintSystem::compareSolutions(
11331133
// The systems are not considered equivalent.
11341134
identical = false;
11351135

1136-
// If one type is convertible to of the other, but not vice-versa.
1137-
type1Better = tc.isConvertibleTo(type1, type2, cs.DC);
1138-
type2Better = tc.isConvertibleTo(type2, type1, cs.DC);
1139-
if (type1Better || type2Better) {
1140-
if (type1Better)
1141-
++score1;
1142-
if (type2Better)
1143-
++score2;
1144-
continue;
1145-
}
1146-
11471136
// A concrete type is better than an archetype.
11481137
// FIXME: Total hack.
11491138
if (type1->is<ArchetypeType>() != type2->is<ArchetypeType>()) {

0 commit comments

Comments
 (0)