diff options
author | Kazu Hirata <kazu@google.com> | 2022-12-02 20:36:08 -0800 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2022-12-02 20:36:08 -0800 |
commit | 998960ee1f2c8bc3830df4849ab89ec9d6217f26 (patch) | |
tree | 19bdc0c4beff9b937cc849d7c50f31c2f3fc5742 /llvm/lib/CodeGen/MachineOperand.cpp | |
parent | 20cde15415d2b2d1b489b4cd5c520c6a8d7f8f54 (diff) | |
download | llvm-998960ee1f2c8bc3830df4849ab89ec9d6217f26.zip llvm-998960ee1f2c8bc3830df4849ab89ec9d6217f26.tar.gz llvm-998960ee1f2c8bc3830df4849ab89ec9d6217f26.tar.bz2 |
[CodeGen] 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
Diffstat (limited to 'llvm/lib/CodeGen/MachineOperand.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineOperand.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineOperand.cpp b/llvm/lib/CodeGen/MachineOperand.cpp index bc3a491..bc2a7a8 100644 --- a/llvm/lib/CodeGen/MachineOperand.cpp +++ b/llvm/lib/CodeGen/MachineOperand.cpp @@ -749,7 +749,7 @@ void MachineOperand::print(raw_ostream &OS, LLT TypeToPrint, const TargetIntrinsicInfo *IntrinsicInfo) const { tryToGetTargetInfo(*this, TRI, IntrinsicInfo); ModuleSlotTracker DummyMST(nullptr); - print(OS, DummyMST, TypeToPrint, None, /*PrintDef=*/false, + print(OS, DummyMST, TypeToPrint, std::nullopt, /*PrintDef=*/false, /*IsStandalone=*/true, /*ShouldPrintRegisterTies=*/true, /*TiedOperandIdx=*/0, TRI, IntrinsicInfo); |