diff options
author | Kazu Hirata <kazu@google.com> | 2022-12-02 19:04:57 -0800 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2022-12-02 19:04:57 -0800 |
commit | fef3a16aeab660d0789c592985993bd68b51f517 (patch) | |
tree | e24bbf89fb0e58bb8a67f58db92d2928593953df /llvm/unittests/CodeGen/MachineInstrTest.cpp | |
parent | d62480c1995b32eea8b9ed5a92829ee5615c4750 (diff) | |
download | llvm-fef3a16aeab660d0789c592985993bd68b51f517.zip llvm-fef3a16aeab660d0789c592985993bd68b51f517.tar.gz llvm-fef3a16aeab660d0789c592985993bd68b51f517.tar.bz2 |
[ADT, Support] Use std::nullopt instead of None (NFC)
This patch mechanically replaces None with std::nullopt where the
compiler would warn if None were deprecated. The intent is to reduce
the amount of manual work required in migrating from Optional to
std::optional.
This is part of an effort to migrate from llvm::Optional to
std::optional:
https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
Differential Revision: https://reviews.llvm.org/D139241
Diffstat (limited to 'llvm/unittests/CodeGen/MachineInstrTest.cpp')
0 files changed, 0 insertions, 0 deletions