From: Dale Weiler Date: Fri, 4 Oct 2013 11:02:06 +0000 (-0400) Subject: Only when peephole optimization is on X-Git-Tag: 0.3.5~49 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ffdd6df828585cafaddea5152093d43e932751e5;p=xonotic%2Fgmqcc.git Only when peephole optimization is on --- 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; }