[clang] [CIR] Add pass_object_size hidden parameter support (PR #191482)

via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 29 13:59:24 PDT 2026


================
@@ -2693,7 +2630,7 @@ mlir::Value CIRGenFunction::emitBuiltinObjectSize(const Expr *e, unsigned type,
     return builder.getConstInt(getLoc(e->getSourceRange()), resType,
                                (type & 2) ? 0 : -1);
 
-  mlir::Value ptr = emittedE ? emittedE : emitScalarExpr(e);
+  auto ptr = emittedE ? emittedE : emitScalarExpr(e);
----------------
adams381 wrote:

You're right, it doesn't.  Changed back to `mlir::Value ptr`.

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


More information about the cfe-commits mailing list