Skip to content

Commit 23ca0bc

Browse files
kazutakahiratakrishna2803
authored andcommitted
[RISCV] Fix a warning
This patch fixes: llvm/lib/Target/RISCV/RISCVRegisterInfo.cpp:579:11: error: unused variable 'Subtarget' [-Werror,-Wunused-variable]
1 parent db96e93 commit 23ca0bc

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

llvm/lib/Target/RISCV/RISCVRegisterInfo.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,6 @@ bool RISCVRegisterInfo::eliminateFrameIndex(MachineBasicBlock::iterator II,
576576
int64_t Val = Offset.getFixed();
577577
int64_t Lo12 = SignExtend64<12>(Val);
578578
unsigned Opc = MI.getOpcode();
579-
auto &Subtarget = MF.getSubtarget<RISCVSubtarget>();
580579

581580
if (Opc == RISCV::ADDI && !isInt<12>(Val)) {
582581
// We chose to emit the canonical immediate sequence rather than folding

0 commit comments

Comments
 (0)