]> granicus.if.org Git - php/commitdiff
Change assertion
authorXinchen Hui <laruence@gmail.com>
Fri, 5 Jan 2018 07:05:05 +0000 (15:05 +0800)
committerXinchen Hui <laruence@gmail.com>
Fri, 5 Jan 2018 07:05:05 +0000 (15:05 +0800)
ext/opcache/Optimizer/sccp.c

index 996eb10ac728157269c0c8e2a01f1b03f6481819..8b5f88cffe239a0875732511502bee9f373f5485 100644 (file)
@@ -333,7 +333,7 @@ static zend_bool try_replace_op2(
                                case ZEND_FETCH_CLASS:
                                        if (Z_TYPE(zv) == IS_STRING) {
                                                ZEND_ASSERT((opline + 1)->opcode == ZEND_INSTANCEOF);
-                                               ZEND_ASSERT((opline + 1)->op2.var == opline->result.var);
+                                               ZEND_ASSERT(ssa_op->result_def == (ssa_op + 1)->op2_use);
                                                if (zend_optimizer_update_op2_const(ctx->scdf.op_array, opline + 1, &zv)) {
                                                        zend_ssa_op *next_op = ssa_op + 1;
                                                        zend_optimizer_remove_live_range_ex(ctx->scdf.op_array, opline->result.var, ssa_op - ctx->scdf.ssa->ops);