forked from OSchip/llvm-project
bpf: fix a bug for disassembling ld_pseudo inst
Signed-off-by: Yonghong Song <yhs@fb.com> llvm-svn: 314469
This commit is contained in:
parent
fb74cb1edf
commit
ef29a84d48
|
@ -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