mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Sema: Fold Constraint::createFixedChoice() into Constraint::createBindOverload()
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user