From ffdd6df828585cafaddea5152093d43e932751e5 Mon Sep 17 00:00:00 2001 From: Dale Weiler Date: Fri, 4 Oct 2013 07:02:06 -0400 Subject: [PATCH] Only when peephole optimization is on --- ast.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ast.c b/ast.c index 5ea6d93..4c14203 100644 --- a/ast.c +++ b/ast.c @@ -454,7 +454,7 @@ ast_binary* ast_binary_new(lex_ctx_t ctx, int op, * Try to fold away superfluous binary operations, such as: * A * 1, a + 0, etc. */ - if ((fold = (ast_binary*)fold_superfluous(left, right, op))) { + if (OPTS_OPTIMIZATION(OPTIM_PEEPHOLE) && (fold = (ast_binary*)fold_superfluous(left, right, op))) { ast_binary_delete(self); return fold; } -- 2.39.2