diff options
| author | Craig Topper <craig.topper@sifive.com> | 2024-09-08 21:21:51 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-08 21:21:51 -0700 |
| commit | f2b71491d11355c0df0c92ef7cce7d610c894660 (patch) | |
| tree | 0cfdfb83aa41ef8f913141fdfb294e87e662370e /llvm/lib/CodeGen/MachineOperand.cpp | |
| parent | c30c0659d6c0c9fd3bc6861cd1eb99a3fcaa1026 (diff) | |
[MC] Make MCRegisterInfo::getLLVMRegNum return std::optional<MCRegister>. NFC (#107776)
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 a0726ca64910..6ee47624f31c 100644 --- a/llvm/lib/CodeGen/MachineOperand.cpp +++ b/llvm/lib/CodeGen/MachineOperand.cpp @@ -494,7 +494,7 @@ static void printCFIRegister(unsigned DwarfReg, raw_ostream &OS, return; } - if (std::optional<unsigned> Reg = TRI->getLLVMRegNum(DwarfReg, true)) + if (std::optional<MCRegister> Reg = TRI->getLLVMRegNum(DwarfReg, true)) OS << printReg(*Reg, TRI); else OS << "<badreg>"; |
