Skip to content

Commit 9b9d41e

Browse files
committed
Delete redundant MCRegisterInfo variable
1 parent bc70c4a commit 9b9d41e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Target/AMDGPU/SIFrameLowering.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,6 @@ void SIFrameLowering::emitEntryFunctionPrologue(MachineFunction &MF,
626626
const SIRegisterInfo *TRI = &TII->getRegisterInfo();
627627
MachineRegisterInfo &MRI = MF.getRegInfo();
628628
const Function &F = MF.getFunction();
629-
const MCRegisterInfo *MCRI = MF.getContext().getRegisterInfo();
630629
MachineFrameInfo &FrameInfo = MF.getFrameInfo();
631630

632631
assert(MFI->isEntryFunction());
@@ -656,7 +655,7 @@ void SIFrameLowering::emitEntryFunctionPrologue(MachineFunction &MF,
656655
// Unwinding halts when the return address (PC) is undefined.
657656
buildCFI(MBB, I, DL,
658657
MCCFIInstruction::createUndefined(
659-
nullptr, MCRI->getDwarfRegNum(AMDGPU::PC_REG, false)));
658+
nullptr, TRI->getDwarfRegNum(AMDGPU::PC_REG, false)));
660659
}
661660

662661
Register PreloadedScratchWaveOffsetReg = MFI->getPreloadedReg(

0 commit comments

Comments
 (0)