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.
foldSequence
1 parent 1f91f12 commit 8eaa64dCopy full SHA for 8eaa64d
lib/Sema/TypeCheckExpr.cpp
@@ -418,12 +418,8 @@ static Expr *foldSequence(DeclContext *DC,
418
}
419
420
// Pull out the next binary operator.
421
- Op op2{S[0], TypeChecker::lookupPrecedenceGroupForInfixOperator(
422
- DC, S[0], /*diagnose=*/true)};
423
-
424
- // If the second operator's precedence is lower than the
425
- // precedence bound, break out of the loop.
426
- if (!precedenceBound.shouldConsider(op2.precedence)) break;
+ Op op2 = getNextOperator();
+ if (!op2) break;
427
428
// If we're missing precedence info for either operator, treat them
429
// as non-associative.
0 commit comments