Skip to content

Commit b3c9dbe

Browse files
authored
Merge pull request #18499 from rudkx/small-refactoring
[ConstraintSystem] Cleanup - remove else after return
2 parents d86725c + efcf87a commit b3c9dbe

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lib/Sema/CSSolver.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1501,11 +1501,10 @@ bool ConstraintSystem::solve(Expr *const expr,
15011501
bool ConstraintSystem::solveRec(SmallVectorImpl<Solution> &solutions,
15021502
FreeTypeVariableBinding allowFreeTypeVariables){
15031503
// If we already failed, or simplification fails, we're done.
1504-
if (failedConstraint || simplify()) {
1504+
if (failedConstraint || simplify())
15051505
return true;
1506-
} else {
1507-
assert(ActiveConstraints.empty() && "Active constraints remain?");
1508-
}
1506+
1507+
assert(ActiveConstraints.empty() && "Active constraints remain?");
15091508

15101509
// If there are no constraints remaining, we're done. Save this solution.
15111510
if (InactiveConstraints.empty()) {

0 commit comments

Comments
 (0)