]> granicus.if.org Git - php/commitdiff
fix wrong check of definition_phi->constraint.range.max_ssa_var
authorMITSUNARI Shigeo <herumi@nifty.com>
Fri, 3 Nov 2017 05:06:27 +0000 (14:06 +0900)
committerJoe Watkins <krakjoe@php.net>
Fri, 3 Nov 2017 17:49:42 +0000 (17:49 +0000)
ext/opcache/Optimizer/zend_inference.c

index 1d142566ab9e7d65c15892db0f3e59a3caead396..5d27c9413bf16003cb5bac3b3bd091b8562bf989 100644 (file)
@@ -1590,7 +1590,7 @@ static void zend_infer_ranges_warmup(const zend_op_array *op_array, zend_ssa *ss
                                        ssa->vars[j].definition_phi->has_range_constraint &&
                                    ssa->vars[j].definition_phi->constraint.range.negative &&
                                    ssa->vars[j].definition_phi->constraint.range.min_ssa_var < 0 &&
-                                   ssa->vars[j].definition_phi->constraint.range.min_ssa_var < 0) {
+                                   ssa->vars[j].definition_phi->constraint.range.max_ssa_var < 0) {
                                        zend_ssa_range_constraint *constraint =
                                                &ssa->vars[j].definition_phi->constraint.range;
                                        if (tmp.min == ssa->var_info[j].range.min &&