aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineOperand.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2022-12-04 21:36:08 +0000
committerFangrui Song <i@maskray.me>2022-12-04 21:36:08 +0000
commitf4c16c44737caac25bf09ec2d85809820579ae40 (patch)
tree4eae73487985fbe84f3b64a5be5ac52c88ff0cbb /llvm/lib/CodeGen/MachineOperand.cpp
parent12f6ac39bcc0957d66b68650fb830e12fb15b3a1 (diff)
downloadllvm-f4c16c44737caac25bf09ec2d85809820579ae40.zip
llvm-f4c16c44737caac25bf09ec2d85809820579ae40.tar.gz
llvm-f4c16c44737caac25bf09ec2d85809820579ae40.tar.bz2
[MC] llvm::Optional => 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.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineOperand.cpp b/llvm/lib/CodeGen/MachineOperand.cpp
index bc2a7a8..bb2d1da 100644
--- a/llvm/lib/CodeGen/MachineOperand.cpp
+++ b/llvm/lib/CodeGen/MachineOperand.cpp
@@ -458,7 +458,7 @@ static void printCFIRegister(unsigned DwarfReg, raw_ostream &OS,
return;
}
- if (Optional<unsigned> Reg = TRI->getLLVMRegNum(DwarfReg, true))
+ if (std::optional<unsigned> Reg = TRI->getLLVMRegNum(DwarfReg, true))
OS << printReg(*Reg, TRI);
else
OS << "<badreg>";