From eaf6d7ab67e506941a9c8883ab802fa168f8f3d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Andr=C3=A9=20Vadla=20Ravn=C3=A5s?= Date: Wed, 24 Jan 2024 04:07:03 +0100 Subject: [PATCH] Fix compilation with CAPSTONE_X86_REDUCE (#2256) Fixes #1955. --- arch/X86/X86ATTInstPrinter.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/X86/X86ATTInstPrinter.c b/arch/X86/X86ATTInstPrinter.c index 179becdc0..c7d8e3f09 100644 --- a/arch/X86/X86ATTInstPrinter.c +++ b/arch/X86/X86ATTInstPrinter.c @@ -801,6 +801,7 @@ static void printanymem(MCInst *MI, unsigned OpNo, SStream *O) case X86_LEA64r: MI->x86opsize = 8; break; +#ifndef CAPSTONE_X86_REDUCE case X86_BNDCL32rm: case X86_BNDCN32rm: case X86_BNDCU32rm: @@ -811,6 +812,7 @@ static void printanymem(MCInst *MI, unsigned OpNo, SStream *O) case X86_BNDCU64rm: MI->x86opsize = 16; break; +#endif } printMemReference(MI, OpNo, O);