[MC] x86-32: properly report error for .quad relocation
authorFangrui Song <i@maskray.me>
Mon, 8 May 2023 03:57:07 +0000 (20:57 -0700)
committerFangrui Song <i@maskray.me>
Mon, 8 May 2023 03:57:07 +0000 (20:57 -0700)
commitfc79ca6be840c1c9b4b2c4a01c6f808de867dac7
treead691bbd3f2d8298563496ef91fb1c89e874e9f8
parentda44a9b0fa413cef8fd4bea11e7c7d6fc8a6a28b
[MC] x86-32: properly report error for .quad relocation

Fix a llvm_unreachable crash in -DLLVM_ENABLE_ASSERTIONS=on builds and
possible accept-invalid in -DLLVM_ENABLE_ASSERTIONS=off builds.
llvm/lib/Target/X86/MCTargetDesc/X86ELFObjectWriter.cpp
llvm/test/MC/X86/directive-quad.s [new file with mode: 0644]