mips: return Fail on assert failure in MipsDisassembler.c

This commit is contained in:
Nguyen Anh Quynh
2015-06-16 14:09:25 +08:00
parent 06eacaf4c8
commit 2ec0f814f9

View File

@ -490,6 +490,8 @@ static DecodeStatus DecodeINSVE_DF_4(MCInst *MI, uint32_t insn,
} //else llvm_unreachable("Invalid encoding");
//assert(NSize != 0 && RegDecoder != nullptr);
if (NSize == 0 || RegDecoder == NULL)
return MCDisassembler_Fail;
if (RegDecoder == NULL)
return MCDisassembler_Fail;