[clang] [CIR] Upstream lowering of conditional operators to TernaryOp (PR #138156)
Andy Kaylor via cfe-commits
cfe-commits at lists.llvm.org
Wed May 28 10:58:40 PDT 2025
================
@@ -201,6 +201,20 @@ bool CIRGenFunction::constantFoldsToSimpleInteger(const Expr *cond,
return true;
}
+/// If the specified expression does not fold
+/// to a constant, or if it does but contains a label, return false. If it
+/// constant folds return true and set the boolean result in `resultBool`.
+bool CIRGenFunction::constantFoldsToSimpleInteger(const Expr *cond,
----------------
andykaylor wrote:
I believe we already have this function, but it was renamed to `constantFoldsToBool`
https://github.com/llvm/llvm-project/pull/138156
More information about the cfe-commits
mailing list