@@ -5415,9 +5415,9 @@ class ConstraintSystem {
54155415
54165416 // / Determine if we've already explored too many paths in an
54175417 // / attempt to solve this expression.
5418- bool isExpressionAlreadyTooComplex = false ;
5419- bool getExpressionTooComplex (size_t solutionMemory) {
5420- if (isExpressionAlreadyTooComplex )
5418+ bool isAlreadyTooComplex = false ;
5419+ bool isTooComplex (size_t solutionMemory) {
5420+ if (isAlreadyTooComplex )
54215421 return true ;
54225422
54235423 auto CancellationFlag = getASTContext ().CancellationFlag ;
@@ -5428,7 +5428,7 @@ class ConstraintSystem {
54285428 MaxMemory = std::max (used, MaxMemory);
54295429 auto threshold = getASTContext ().TypeCheckerOpts .SolverMemoryThreshold ;
54305430 if (MaxMemory > threshold) {
5431- return isExpressionAlreadyTooComplex = true ;
5431+ return isAlreadyTooComplex = true ;
54325432 }
54335433
54345434 if (Timer && Timer->isExpired ()) {
@@ -5437,27 +5437,27 @@ class ConstraintSystem {
54375437 // emitting an error.
54385438 Timer->disableWarning ();
54395439
5440- return isExpressionAlreadyTooComplex = true ;
5440+ return isAlreadyTooComplex = true ;
54415441 }
54425442
54435443 // Bail out once we've looked at a really large number of
54445444 // choices.
54455445 if (CountScopes > getASTContext ().TypeCheckerOpts .SolverBindingThreshold ) {
5446- return isExpressionAlreadyTooComplex = true ;
5446+ return isAlreadyTooComplex = true ;
54475447 }
54485448
54495449 return false ;
54505450 }
54515451
5452- bool getExpressionTooComplex (SmallVectorImpl<Solution> const &solutions) {
5453- if (isExpressionAlreadyTooComplex )
5452+ bool isTooComplex (SmallVectorImpl<Solution> const &solutions) {
5453+ if (isAlreadyTooComplex )
54545454 return true ;
54555455
54565456 size_t solutionMemory = 0 ;
54575457 for (auto const & s : solutions) {
54585458 solutionMemory += s.getTotalMemory ();
54595459 }
5460- return getExpressionTooComplex (solutionMemory);
5460+ return isTooComplex (solutionMemory);
54615461 }
54625462
54635463 // If the given constraint is an applied disjunction, get the argument function
0 commit comments