Skip to content

Commit 74d0040

Browse files
committed
[Sema] Remove unnecessary impact adjustment
1 parent 26f0a80 commit 74d0040

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

lib/Sema/CSSimplify.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10060,12 +10060,6 @@ ConstraintSystem::SolutionKind ConstraintSystem::simplifyFixConstraint(
1006010060
impact = 10;
1006110061
}
1006210062

10063-
if (locator->isLastElement<LocatorPathElt::UnresolvedMemberChainResult>()) {
10064-
// If this is a contextual failure for an unresolved member, then increase
10065-
// the impact to attempt other fixes first and avoid ambiguity.
10066-
impact = 2;
10067-
}
10068-
1006910063
if (recordFix(fix, impact))
1007010064
return SolutionKind::Error;
1007110065

0 commit comments

Comments
 (0)