diff --git a/llvm/lib/Target/M68k/AsmParser/M68kAsmParser.cpp b/llvm/lib/Target/M68k/AsmParser/M68kAsmParser.cpp --- a/llvm/lib/Target/M68k/AsmParser/M68kAsmParser.cpp +++ b/llvm/lib/Target/M68k/AsmParser/M68kAsmParser.cpp @@ -133,7 +133,6 @@ SMLoc Start, End; union { StringRef Token; - int64_t Imm; const MCExpr *Expr; M68kMemOp MemOp; }; @@ -1070,7 +1069,9 @@ break; case KindTy::Imm: - OS << "immediate " << Imm; + int64_t Value; + Expr->evaluateAsAbsolute(Value); + OS << "immediate " << Value; break; case KindTy::MemOp: