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:
Charles Crayne 2008-03-26 17:20:21 -07:00
parent bd45c46cb9
commit 5a7976c925

View file

@ -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);