diff options
author | H. Peter Anvin <hpa@zytor.com> | 2008-07-19 21:38:56 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2008-07-19 21:38:56 -0700 |
commit | 1c3277b62550d1ef6ac892715e935cc7108873ad (patch) | |
tree | 9b4ab117d09b6b19aed1588436de929705b87dec /nasm.h | |
parent | 1b67bd25b20b153c0fdc799c28250b9e259221ce (diff) | |
download | nasm-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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 */ |