diff --git a/arch/AArch64/AArch64InstPrinter.c b/arch/AArch64/AArch64InstPrinter.c index aae6b315e..08f9b35be 100644 --- a/arch/AArch64/AArch64InstPrinter.c +++ b/arch/AArch64/AArch64InstPrinter.c @@ -964,6 +964,10 @@ DEFINE_printMatrix(0); \ const char *RegName = getRegisterName(MCOperand_getReg(RegOp), \ AArch64_NoRegAltName); \ +\ + /* Diet builds have no register-name table; skip printing. */ \ + if (!RegName) \ + return; \ \ unsigned buf_len = strlen(RegName) + 1; \ char *Base = cs_mem_calloc(1, buf_len); \