[clang] [CIR] Freeze maybe_undef call arguments (PR #234124)

Andy Kaylor via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 23 17:04:58 PDT 2026


================
@@ -1241,6 +1241,27 @@ CIRGenTypes::arrangeFreeFunctionType(CanQual<FunctionNoProtoType> fnpt) {
                                 fnpt->getExtInfo(), RequiredArgs(0));
 }
 
+/// Check if the argument of a function has maybe_undef attribute.
+static bool isArgumentMaybeUndef(const Decl *targetDecl,
----------------
andykaylor wrote:

It would be nice to share this with classic codegen. Can we move it to CodeGenUtils or somewhere in the AST?

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


More information about the cfe-commits mailing list