Skip to content

Commit 1695e8b

Browse files
committed
[RISCV] Fix typo '==' instead of '='. NFC
1 parent faa4505 commit 1695e8b

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)