summaryrefslogtreecommitdiff
path: root/nasm.h
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-07-19 21:38:56 -0700
committerH. Peter Anvin <hpa@zytor.com>2008-07-19 21:38:56 -0700
commit1c3277b62550d1ef6ac892715e935cc7108873ad (patch)
tree9b4ab117d09b6b19aed1588436de929705b87dec /nasm.h
parent1b67bd25b20b153c0fdc799c28250b9e259221ce (diff)
downloadnasm-1c3277b62550d1ef6ac892715e935cc7108873ad.tar.gz
nasm-1c3277b62550d1ef6ac892715e935cc7108873ad.tar.bz2
nasm-1c3277b62550d1ef6ac892715e935cc7108873ad.zip
BR 2003451: avoid "forwardness" leaks between operands
Any use of ins->forw_ref that isn't related to control of the optimizer is fundamentally broken. Use operand->opflags & OPERAND_FORWARD instead. This even has the nice side benefit of simplifying the code.
Diffstat (limited to 'nasm.h')
-rw-r--r--nasm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/nasm.h b/nasm.h
index 2b61e28..4799e91 100644
--- a/nasm.h
+++ b/nasm.h
@@ -695,7 +695,7 @@ typedef struct insn { /* an instruction itself */
extop *eops; /* extended operands */
int eops_float; /* true if DD and floating */
int32_t times; /* repeat count (TIMES prefix) */
- int forw_ref; /* is there a forward reference? */
+ bool forw_ref; /* is there a forward reference? */
int rex; /* Special REX Prefix */
int drexdst; /* Destination register for DREX/VEX suffix */
int vex_m; /* M register for VEX prefix */