mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-02-17 09:02:25 +00:00
Eh, only if peephole optimizations are turned on.
This commit is contained in:
parent
c6056d441b
commit
3c931ecbf1
1 changed files with 1 additions and 1 deletions
2
ast.c
2
ast.c
|
@ -518,7 +518,7 @@ ast_unary* ast_unary_new(lex_ctx_t ctx, int op,
|
|||
self->op = op;
|
||||
self->operand = expr;
|
||||
|
||||
if (ast_istype(expr, ast_unary)) {
|
||||
if (ast_istype(expr, ast_unary) && OPTS_OPTIMIZATION(OPTIM_PEEPHOLE)) {
|
||||
ast_unary *prev = (ast_unary*)((ast_unary*)expr)->operand;
|
||||
if (ast_istype(prev, ast_unary)) {
|
||||
ast_expression_delete((ast_expression*)self);
|
||||
|
|
Loading…
Reference in a new issue