Skip to content

Commit 4d19d9f

Browse files
committed
Remove redundant simplification
The call to `solveRec`, below, immediately performs this same check. While that doesn't result in an early return from `solve`, the effect appears to be the same.
1 parent b52ef8b commit 4d19d9f

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

lib/Sema/CSSolver.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1417,12 +1417,6 @@ bool ConstraintSystem::solve(Expr *const expr,
14171417
// Set up solver state.
14181418
SolverState state(expr, *this);
14191419

1420-
// Simplify any constraints left active after constraint generation
1421-
// and optimization. Return if the resulting system has no
1422-
// solutions.
1423-
if (failedConstraint || simplify())
1424-
return true;
1425-
14261420
// Solve the system.
14271421
solveRec(solutions, allowFreeTypeVariables);
14281422

0 commit comments

Comments
 (0)