[clang] [CIR] Upstream initial for-loop support (PR #132266)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 20 12:01:23 PDT 2025


================
@@ -165,6 +165,25 @@ LValue CIRGenFunction::emitDeclRefLValue(const DeclRefExpr *e) {
   return LValue();
 }
 
+mlir::Value CIRGenFunction::evaluateExprAsBool(const Expr *e) {
----------------
erichkeane wrote:

Ah, I see.  So even 8-bit 'bool' type is getting converted.  It is a touch confusing to use `Bool` as the name for the CIR type representing an `i1`, and clang for `i8`, but Cest La Vie.

https://github.com/llvm/llvm-project/pull/132266


More information about the cfe-commits mailing list