From 3d9b3d353d9ad64401944cda751bd8e06e547e57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Andr=C3=A9=20Vadla=20Ravn=C3=A5s?= Date: Sun, 21 Jan 2024 08:19:08 +0100 Subject: [PATCH] Fix compilation with CAPSTONE_X86_REDUCE 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 179becdc05..c7d8e3f098 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);