================ @@ -15050,7 +15050,7 @@ ExprResult Sema::CreateBuiltinBinOp(SourceLocation OpLoc, ResultTy = CheckCompareOperands(LHS, RHS, OpLoc, Opc); if (const auto *BI = dyn_cast<BinaryOperator>(LHSExpr); - BI && BI->isComparisonOp()) + !ForFoldExpression && BI && BI->isComparisonOp()) ---------------- cor3ntin wrote:
That's just a side effect of looking at the LHS first - I don't think the distinction matters here https://github.com/llvm/llvm-project/pull/136836 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits