[llvm] [AMDGPU] Don't use MCRegister to hold Dwarf register numbers. NFC (PR #216766)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 17 10:04:23 PDT 2026


================
@@ -1135,7 +1135,7 @@ void SIFrameLowering::emitPrologueEntryCFI(MachineBasicBlock &MBB,
       return;
     if (IsCalleeSaved.test(Reg) || !MRI.isPhysRegModified(Reg))
       return;
-    MCRegister DwarfReg = MCRI->getDwarfRegNum(Reg, false);
+    unsigned DwarfReg = MCRI->getDwarfRegNum(Reg, false);
----------------
topperc wrote:

Also all the MCCFIInstruction functions that these registers are passed to are using `unsigned`.

https://github.com/llvm/llvm-project/pull/216766


More information about the llvm-commits mailing list