[Constrant system] Drop expression from diagnoseAmbiguityWithFixes.

It's unused now.
This commit is contained in:
Doug Gregor
2019-11-08 23:02:22 -08:00
parent 5446d333b8
commit 670ff7def1
2 changed files with 3 additions and 3 deletions

View File

@@ -2425,7 +2425,7 @@ bool ConstraintSystem::salvage(SmallVectorImpl<Solution> &viable, Expr *expr) {
// Before removing any "fixed" solutions, let's check
// if ambiguity is caused by fixes and diagnose if possible.
if (diagnoseAmbiguityWithFixes(expr, viable))
if (diagnoseAmbiguityWithFixes(viable))
return true;
// FIXME: If we were able to actually fix things along the way,
@@ -2529,7 +2529,7 @@ static void diagnoseOperatorAmbiguity(ConstraintSystem &cs,
}
bool ConstraintSystem::diagnoseAmbiguityWithFixes(
Expr *expr, ArrayRef<Solution> solutions) {
ArrayRef<Solution> solutions) {
if (solutions.empty())
return false;