Skip to content

Commit 51b63bb

Browse files
committed
RISCV: Replace MCExpr::print with MCAsmInfo::printExpr
Follow-up to 18b67a7
1 parent fedf6c6 commit 51b63bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/RISCV/RISCVAsmPrinter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ bool RISCVAsmPrinter::PrintAsmMemoryOperand(const MachineInstr *MI,
432432
if (Offset.isImm())
433433
OS << MCO.getImm();
434434
else if (Offset.isGlobal() || Offset.isBlockAddress() || Offset.isMCSymbol())
435-
OS << *MCO.getExpr();
435+
MAI->printExpr(OS, *MCO.getExpr());
436436

437437
if (Offset.isMCSymbol())
438438
MMI->getContext().registerInlineAsmLabel(Offset.getMCSymbol());

0 commit comments

Comments
 (0)