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
1 changed files with 2 additions and 1 deletions
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 a new issue