summaryrefslogtreecommitdiff
path: root/assemble.c
diff options
context:
space:
mode:
Diffstat (limited to 'assemble.c')
-rw-r--r--assemble.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/assemble.c b/assemble.c
index df0ac7d..f025360 100644
--- a/assemble.c
+++ b/assemble.c
@@ -2131,14 +2131,10 @@ static enum ea_type process_ea(operand *input, ea *output, int bits,
/*
* It's a direct register.
*/
- opflags_t f;
-
if (!is_register(input->basereg))
goto err;
- f = regflag(input);
-
- if (!is_class(REG_EA, f))
+ if (!is_class(REG_EA, regflag(input)))
goto err;
output->rex |= op_rexflags(input, REX_B | REX_P | REX_W | REX_H);