[M68k] Fix printing of immediate in `M68kOperand::print`
authorIan Douglas Scott <ian@iandouglasscott.com>
Sun, 16 Apr 2023 22:43:27 +0000 (15:43 -0700)
committerMin-Yih Hsu <minyihh@uci.edu>
Sun, 16 Apr 2023 22:44:18 +0000 (15:44 -0700)
commitc31fca105bb75812ffc70a41a4c9ecdf4983a3f4
tree5134928fd53668d3e1f33b8c0018661f2550e9dd
parent0571ba8d1b4dbe72e0856f9b84146cc6e152a4d0
[M68k] Fix printing of immediate in `M68kOperand::print`

The `Imm` union variant wasn't initialized anywhere. This fixes what is
printed by `llvm-mc -arch m68k --show-inst-operands`.

Differential Revision: https://reviews.llvm.org/D148302
llvm/lib/Target/M68k/AsmParser/M68kAsmParser.cpp
llvm/test/MC/M68k/operand.s [new file with mode: 0644]