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

Andy Kaylor via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 10 15:47:29 PDT 2026


================
@@ -1396,8 +1401,15 @@ void CIRGenFunction::emitCallArgs(
     if (!ps)
       return;
 
-    assert(!cir::MissingFeatures::opCallImplicitObjectSizeArgs());
-    cgm.errorNYI("emit implicit object size for call arg");
+    const ASTContext &astContext = getContext();
+    QualType sizeTy = astContext.getSizeType();
+    cir::IntType t = builder.getUIntNTy(astContext.getTypeSize(sizeTy));
----------------
andykaylor wrote:

I think you can just use `cgm.sizeTy`.

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


More information about the cfe-commits mailing list