[Fix] no return value error in Apple Silicon (#2160)

* Disable swift binding const generate

* Fix no return value error in Apple Silicon
This commit is contained in:
Wu ChenXu 2023-09-11 22:15:49 +08:00 committed by GitHub
parent d7a339456e
commit 4d76f87640
2 changed files with 2 additions and 0 deletions

View File

@ -281,6 +281,7 @@ uint64_t MCInst_getOpVal(MCInst *MI, unsigned OpNum)
return MCOperand_getImm(op);
else
assert(0 && "Operand type not handled in this getter.");
return false;
}
void MCInst_setIsAlias(MCInst *MI, bool Flag) {

View File

@ -613,6 +613,7 @@ ppc_pred PPC_get_no_hint_pred(unsigned Code)
case PPC_PRED_BIT_UNSET:
assert(0 && "Invalid use of bit predicate code");
}
return PPC_PRED_INVALID;
}
void PPC_set_mem_access(MCInst *MI, bool status)