diff options
author | Kazu Hirata <kazu@google.com> | 2025-06-21 08:20:49 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-21 08:20:49 -0700 |
commit | e6ebf8f99ba27d60026c7473b0cd5e24c855b018 (patch) | |
tree | d63be23cdecefb736e3de24e275301f40080f813 /clang/lib/CodeGen/ModuleBuilder.cpp | |
parent | 99af99c6657db0ad76bc348fe075c873a10da031 (diff) | |
download | llvm-e6ebf8f99ba27d60026c7473b0cd5e24c855b018.zip llvm-e6ebf8f99ba27d60026c7473b0cd5e24c855b018.tar.gz llvm-e6ebf8f99ba27d60026c7473b0cd5e24c855b018.tar.bz2 |
[mlir] Migrate away from ArrayRef(std::nullopt) (NFC) (#145140)
ArrayRef has a constructor that accepts std::nullopt. This
constructor dates back to the days when we still had llvm::Optional.
Since the use of std::nullopt outside the context of std::optional is
kind of abuse and not intuitive to new comers, I would like to move
away from the constructor and eventually remove it.
This patch takes care of the mlir side of the migration, starting with
straightforward places like "return std::nullopt;" and ternally
expressions involving std::nullopt.
Diffstat (limited to 'clang/lib/CodeGen/ModuleBuilder.cpp')
0 files changed, 0 insertions, 0 deletions