Skip to content

Commit ae80ac6

Browse files
committed
[X86] printAsmMRegister - make the X86AsmPrinter arg a const reference. NFC.
Fixes cppcheck warning.
1 parent 39f77b3 commit ae80ac6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/X86/X86AsmPrinter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ void X86AsmPrinter::PrintIntelMemReference(const MachineInstr *MI,
404404
O << ']';
405405
}
406406

407-
static bool printAsmMRegister(X86AsmPrinter &P, const MachineOperand &MO,
407+
static bool printAsmMRegister(const X86AsmPrinter &P, const MachineOperand &MO,
408408
char Mode, raw_ostream &O) {
409409
Register Reg = MO.getReg();
410410
bool EmitPercent = MO.getParent()->getInlineAsmDialect() == InlineAsm::AD_ATT;

0 commit comments

Comments
 (0)