Skip to content

Commit cba5a90

Browse files
realqhcmshockwave
andauthored
Update llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp
Co-authored-by: Min-Yih Hsu <[email protected]>
1 parent e8dcf91 commit cba5a90

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,7 @@ static DecodeStatus DecodeGPRPairRegisterClass(MCInst &Inst, uint32_t RegNo,
227227
static DecodeStatus decodeRVPGPRPair(MCInst &Inst, uint32_t RegNo,
228228
uint64_t Address,
229229
const MCDisassembler *Decoder) {
230-
RegNo = RegNo << 1;
231-
return DecodeGPRPairRegisterClass(Inst, RegNo, Address, Decoder);
230+
return DecodeGPRPairRegisterClass(Inst, RegNo << 1, Address, Decoder);
232231
}
233232

234233
static DecodeStatus DecodeSR07RegisterClass(MCInst &Inst, uint32_t RegNo,

0 commit comments

Comments
 (0)