@@ -1483,11 +1483,11 @@ void ConstraintSystem::shrink(Expr *expr) {
1483
1483
if (auto dictionaryExpr = dyn_cast<DictionaryExpr>(expr)) {
1484
1484
bool isPrimaryExpr = expr == PrimaryExpr;
1485
1485
for (auto element : dictionaryExpr->getElements ()) {
1486
- unsigned numOverlaods = 0 ;
1487
- element->walk (OverloadSetCounter (numOverlaods ));
1486
+ unsigned numOverloads = 0 ;
1487
+ element->walk (OverloadSetCounter (numOverloads ));
1488
1488
1489
1489
// There are no overload sets in the element; skip it.
1490
- if (numOverlaods == 0 )
1490
+ if (numOverloads == 0 )
1491
1491
continue ;
1492
1492
1493
1493
// FIXME: Could we avoid creating a separate dictionary expression
@@ -1576,7 +1576,7 @@ void ConstraintSystem::shrink(Expr *expr) {
1576
1576
1577
1577
// If there are fewer than two overloads in the chain
1578
1578
// there is no point of solving this expression,
1579
- // because we won't be able to reduce it's domain.
1579
+ // because we won't be able to reduce its domain.
1580
1580
if (numOverloadSets > 1 )
1581
1581
SubExprs.push (Candidate (CS, expr, expr == PrimaryExpr));
1582
1582
@@ -1627,7 +1627,7 @@ ConstraintSystem::solve(Expr *&expr,
1627
1627
assert (!solverState && " use solveRec for recursive calls" );
1628
1628
1629
1629
// Try to shrink the system by reducing disjunction domains. This
1630
- // goes through every sub-expression and generate it's own sub-system, to
1630
+ // goes through every sub-expression and generate its own sub-system, to
1631
1631
// try to reduce the domains of those subexpressions.
1632
1632
shrink (expr);
1633
1633
0 commit comments