[clang] [CIR] Function type return type improvements (PR #128787)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 25 16:07:56 PST 2025


================
@@ -424,6 +424,10 @@ LogicalResult cir::FuncOp::verifyType() {
   if (!isa<cir::FuncType>(type))
     return emitOpError("requires '" + getFunctionTypeAttrName().str() +
                        "' attribute of function type");
+  if (auto rt = type.getReturnTypes();
----------------
erichkeane wrote:

Is there anywhere that we check that `rt.size() == 1` as a part of the verifier?

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


More information about the cfe-commits mailing list