[all-commits] [llvm/llvm-project] 96f7f2: [mlir][examples] Use {} instead of std::nullopt (N...

Kazu Hirata via All-commits all-commits at lists.llvm.org
Thu Jul 3 15:50:04 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 96f7f22825d06323a477344cff32d550c045bc42
      https://github.com/llvm/llvm-project/commit/96f7f22825d06323a477344cff32d550c045bc42
  Author: Kazu Hirata <kazu at google.com>
  Date:   2025-07-03 (Thu, 03 Jul 2025)

  Changed paths:
    M mlir/examples/toy/Ch2/mlir/MLIRGen.cpp
    M mlir/examples/toy/Ch3/mlir/MLIRGen.cpp
    M mlir/examples/toy/Ch4/mlir/MLIRGen.cpp
    M mlir/examples/toy/Ch5/mlir/MLIRGen.cpp
    M mlir/examples/toy/Ch6/mlir/MLIRGen.cpp
    M mlir/examples/toy/Ch7/mlir/MLIRGen.cpp

  Log Message:
  -----------
  [mlir][examples] Use {} instead of std::nullopt (NFC) (#146949)

This patch fixes deprecation warnings like:

  mlir/include/mlir/IR/TypeRange.h:51:19: error: 'ArrayRef' is
  deprecated: Use {} or ArrayRef<T>() instead
  [-Werror,-Wdeprecated-declarations]



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list