Sema: Fold Constraint::createFixedChoice() into Constraint::createBindOverload()

This commit is contained in:
Slava Pestov
2024-10-11 11:21:20 -04:00
parent 2eaec5a97f
commit b44bff26b5
3 changed files with 21 additions and 36 deletions

View File

@@ -3831,10 +3831,8 @@ void ConstraintSystem::generateConstraints(
if (requiresFix && !fix)
return;
auto *choice = fix ? Constraint::createFixedChoice(*this, type, overload,
useDC, fix, locator)
: Constraint::createBindOverload(*this, type, overload,
useDC, locator);
auto *choice = Constraint::createBindOverload(*this, type, overload,
useDC, fix, locator);
if (isFavored)
choice->setFavored();