From: Dale Weiler Date: Sat, 28 Sep 2013 10:41:40 +0000 (-0400) Subject: Eh, only if peephole optimizations are turned on. X-Git-Tag: 0.3.5~62 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3c931ecbf17c852012efc5050ed44cb8e8f2c1da;p=xonotic%2Fgmqcc.git Eh, only if peephole optimizations are turned on. --- diff --git a/ast.c b/ast.c index ffef079..3f5f02b 100644 --- a/ast.c +++ b/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);