From 3c931ecbf17c852012efc5050ed44cb8e8f2c1da Mon Sep 17 00:00:00 2001 From: Dale Weiler Date: Sat, 28 Sep 2013 06:41:40 -0400 Subject: [PATCH] Eh, only if peephole optimizations are turned on. --- ast.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.2