Skip to content

Commit fae33c1

Browse files
committed
Fix typos.
(cherry picked from commit 37041f1)
1 parent 5cf29e5 commit fae33c1

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
@@ -1499,11 +1499,11 @@ void ConstraintSystem::shrink(Expr *expr) {
14991499
if (auto dictionaryExpr = dyn_cast<DictionaryExpr>(expr)) {
15001500
bool isPrimaryExpr = expr == PrimaryExpr;
15011501
for (auto element : dictionaryExpr->getElements()) {
1502-
unsigned numOverlaods = 0;
1503-
element->walk(OverloadSetCounter(numOverlaods));
1502+
unsigned numOverloads = 0;
1503+
element->walk(OverloadSetCounter(numOverloads));
15041504

15051505
// There are no overload sets in the element; skip it.
1506-
if (numOverlaods == 0)
1506+
if (numOverloads == 0)
15071507
continue;
15081508

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

15931593
// If there are fewer than two overloads in the chain
15941594
// there is no point of solving this expression,
1595-
// because we won't be able to reduce it's domain.
1595+
// because we won't be able to reduce its domain.
15961596
if (numOverloadSets > 1)
15971597
SubExprs.push(Candidate(CS, expr, expr == PrimaryExpr));
15981598

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

16451645
// Try to shrink the system by reducing disjunction domains. This
1646-
// goes through every sub-expression and generate it's own sub-system, to
1646+
// goes through every sub-expression and generate its own sub-system, to
16471647
// try to reduce the domains of those subexpressions.
16481648
shrink(expr);
16491649

0 commit comments

Comments
 (0)