mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-01-18 16:25:05 +08:00
Restore critical expression checking when optimizer enabled
In the prior code, enabling optimization effectively diabled critical expression checking, because the optimization passes took place before checking was enabled.
This commit is contained in:
parent
bd45c46cb9
commit
5a7976c925
3
parser.c
3
parser.c
@ -323,7 +323,8 @@ restart_parse:
|
||||
result->opcode == I_RESD || result->opcode == I_RESQ ||
|
||||
result->opcode == I_REST || result->opcode == I_RESO ||
|
||||
result->opcode == I_EQU || result->opcode == I_INCBIN) {
|
||||
critical = pass0;
|
||||
critical = (pass0 < 2 ? 1 : 2);
|
||||
|
||||
} else
|
||||
critical = (pass == 2 ? 2 : 0);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user