mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-04 01:42:09 +00:00
bpf: fix a bug for disassembling ld_pseudo inst
Signed-off-by: Yonghong Song <yhs@fb.com> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@314469 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
86b6138b9a
commit
df99c09b49
@ -146,7 +146,8 @@ DecodeStatus BPFDisassembler::getInstruction(MCInst &Instr, uint64_t &Size,
|
||||
if (Result == MCDisassembler::Fail) return MCDisassembler::Fail;
|
||||
|
||||
switch (Instr.getOpcode()) {
|
||||
case BPF::LD_imm64: {
|
||||
case BPF::LD_imm64:
|
||||
case BPF::LD_pseudo: {
|
||||
if (Bytes.size() < 16) {
|
||||
Size = 0;
|
||||
return MCDisassembler::Fail;
|
||||
|
Loading…
Reference in New Issue
Block a user