Skip to content

Commit f25be36

Browse files
authored
Merge pull request #4591 from rudkx/typos
2 parents 1ada509 + 37041f1 commit f25be36

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/Sema/CSSolver.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1483,11 +1483,11 @@ void ConstraintSystem::shrink(Expr *expr) {
14831483
if (auto dictionaryExpr = dyn_cast<DictionaryExpr>(expr)) {
14841484
bool isPrimaryExpr = expr == PrimaryExpr;
14851485
for (auto element : dictionaryExpr->getElements()) {
1486-
unsigned numOverlaods = 0;
1487-
element->walk(OverloadSetCounter(numOverlaods));
1486+
unsigned numOverloads = 0;
1487+
element->walk(OverloadSetCounter(numOverloads));
14881488

14891489
// There are no overload sets in the element; skip it.
1490-
if (numOverlaods == 0)
1490+
if (numOverloads == 0)
14911491
continue;
14921492

14931493
// FIXME: Could we avoid creating a separate dictionary expression
@@ -1576,7 +1576,7 @@ void ConstraintSystem::shrink(Expr *expr) {
15761576

15771577
// If there are fewer than two overloads in the chain
15781578
// 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.
15801580
if (numOverloadSets > 1)
15811581
SubExprs.push(Candidate(CS, expr, expr == PrimaryExpr));
15821582

@@ -1627,7 +1627,7 @@ ConstraintSystem::solve(Expr *&expr,
16271627
assert(!solverState && "use solveRec for recursive calls");
16281628

16291629
// 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
16311631
// try to reduce the domains of those subexpressions.
16321632
shrink(expr);
16331633

0 commit comments

Comments
 (0)