diff options
author | David Mo <david.mo1@huawei.com> | 2023-07-07 14:27:00 -0400 |
---|---|---|
committer | Bryan Chan <bryan.chan@huawei.com> | 2023-07-11 10:36:25 -0400 |
commit | ef7ca14fa5091fc1d0b1992384bff700a2dac47d (patch) | |
tree | 762b1b3d1a39f4303734d98ba5c23d23801296eb /llvm/tools/llvm-objdump/llvm-objdump.cpp | |
parent | db8b624de172f6f1f62b2559f54f86adb8799e6e (diff) | |
download | llvm-ef7ca14fa5091fc1d0b1992384bff700a2dac47d.zip llvm-ef7ca14fa5091fc1d0b1992384bff700a2dac47d.tar.gz llvm-ef7ca14fa5091fc1d0b1992384bff700a2dac47d.tar.bz2 |
[WebAssembly] Report error for inline assembly with unsupported opcodes
For inline WebAssembly, passing a numeric operand to global.get is
unsupported. This causes encodeInstruction to reach an llvm_unreachable
call, leading to undefined behaviors. This patch fixes the issue for
this invalid instruction encoding, making it report an error by adding
an MCContext field in class WebAssemblyMCCodeEmitter.
Reviewed By: sbc100, bryanpkc
Differential Revision: https://reviews.llvm.org/D154734
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
0 files changed, 0 insertions, 0 deletions