Skip to content

Commit fd6e17f

Browse files
toppercgithub-actions[bot]
authored andcommitted
Automerge: [RISCV] Fix typo '==' instead of '='. NFC
2 parents 3a92a6c + 1695e8b commit fd6e17f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/RISCV/RISCVInstrInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ void RISCVInstrInfo::copyPhysReg(MachineBasicBlock &MBB,
547547
MCRegister OddReg = TRI->getSubReg(SrcReg, RISCV::sub_gpr_odd);
548548
// We need to correct the odd register of X0_Pair.
549549
if (OddReg == RISCV::DUMMY_REG_PAIR_WITH_X0)
550-
OddReg == RISCV::X0;
550+
OddReg = RISCV::X0;
551551
assert(DstReg != RISCV::X0_Pair && "Cannot write to X0_Pair");
552552

553553
// Emit an ADDI for both parts of GPRPair.

0 commit comments

Comments
 (0)