]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
This is not allowed
authorWolfgang Bumiller <wry.git@bumiller.com>
Wed, 23 Oct 2013 12:01:56 +0000 (14:01 +0200)
committerWolfgang Bumiller <wry.git@bumiller.com>
Wed, 23 Oct 2013 12:01:56 +0000 (14:01 +0200)
ast.c

diff --git a/ast.c b/ast.c
index dbd23f14db04889f3e17a0b977db503aac5904dc..a0a7f6c411a36424a8192f730db6d2e1bfe0ce7e 100644 (file)
--- a/ast.c
+++ b/ast.c
@@ -450,11 +450,6 @@ ast_binary* ast_binary_new(lex_ctx_t ctx, int op,
     ast_propagate_effects(self, left);
     ast_propagate_effects(self, right);
 
-    if (OPTS_OPTIMIZATION(OPTIM_PEEPHOLE) && (fold = (ast_binary*)fold_superfluous(left, right, op))) {
-        ast_binary_delete(self);
-        return fold;
-    }
-
     if (op >= INSTR_EQ_F && op <= INSTR_GT)
         self->expression.vtype = TYPE_FLOAT;
     else if (op == INSTR_AND || op == INSTR_OR) {