[Mlir-commits] [mlir] [mlir][examples] Use {} instead of std::nullopt (NFC) (PR #146949)

Kazu Hirata llvmlistbot at llvm.org
Thu Jul 3 15:49:20 PDT 2025


================
@@ -120,7 +120,7 @@ class MLIRGenImpl {
     // Arguments type are uniformly unranked tensors.
     llvm::SmallVector<mlir::Type, 4> argTypes(proto.getArgs().size(),
                                               getType(VarType{}));
-    auto funcType = builder.getFunctionType(argTypes, std::nullopt);
+    auto funcType = builder.getFunctionType(argTypes, {});
----------------
kazutakahirata wrote:

Fixed in the latest revision.

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


More information about the Mlir-commits mailing list