Skip to content

Commit 2690f05

Browse files
authored
[SystemZ] Use MCRegister instead of unsigned. NFC (#167539)
1 parent 385aa01 commit 2690f05

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/Target/SystemZ/MCTargetDesc/SystemZInstPrinterCommon.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ void SystemZInstPrinterCommon::printBDXAddrOperand(const MCInst *MI, int OpNum,
218218

219219
void SystemZInstPrinterCommon::printBDLAddrOperand(const MCInst *MI, int OpNum,
220220
raw_ostream &O) {
221-
unsigned Base = MI->getOperand(OpNum).getReg();
221+
MCRegister Base = MI->getOperand(OpNum).getReg();
222222
const MCOperand &DispMO = MI->getOperand(OpNum + 1);
223223
uint64_t Length = MI->getOperand(OpNum + 2).getImm();
224224
printOperand(DispMO, &MAI, O);
@@ -232,9 +232,9 @@ void SystemZInstPrinterCommon::printBDLAddrOperand(const MCInst *MI, int OpNum,
232232

233233
void SystemZInstPrinterCommon::printBDRAddrOperand(const MCInst *MI, int OpNum,
234234
raw_ostream &O) {
235-
unsigned Base = MI->getOperand(OpNum).getReg();
235+
MCRegister Base = MI->getOperand(OpNum).getReg();
236236
const MCOperand &DispMO = MI->getOperand(OpNum + 1);
237-
unsigned Length = MI->getOperand(OpNum + 2).getReg();
237+
MCRegister Length = MI->getOperand(OpNum + 2).getReg();
238238
printOperand(DispMO, &MAI, O);
239239
O << "(";
240240
printRegName(O, Length);

0 commit comments

Comments
 (0)