We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76965d7 commit efcf87aCopy full SHA for efcf87a
lib/Sema/CSSolver.cpp
@@ -1501,11 +1501,10 @@ bool ConstraintSystem::solve(Expr *const expr,
1501
bool ConstraintSystem::solveRec(SmallVectorImpl<Solution> &solutions,
1502
FreeTypeVariableBinding allowFreeTypeVariables){
1503
// If we already failed, or simplification fails, we're done.
1504
- if (failedConstraint || simplify()) {
+ if (failedConstraint || simplify())
1505
return true;
1506
- } else {
1507
- assert(ActiveConstraints.empty() && "Active constraints remain?");
1508
- }
+
+ assert(ActiveConstraints.empty() && "Active constraints remain?");
1509
1510
// If there are no constraints remaining, we're done. Save this solution.
1511
if (InactiveConstraints.empty()) {
0 commit comments