com php-src: Change assertion: ext/opcache/Optimizer/sccp.c
| From: | Xinchen Hui | Date: | Fri, 05 Jan 2018 07:05:05 +0000 |
| Subject: | com php-src: Change assertion: ext/opcache/Optimizer/sccp.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-100802@lists.php.net to get a copy of this message | ||
Commit: 8d63c834e4102c47c26e7f83d8a5cc2407b72afb
Author: Xinchen Hui <laruence@gmail.com> Fri, 5 Jan 2018 15:05:05 +0800
Parents: 729a6688af366f995bd07ce94d825ed895a77d10
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=8d63c834e4102c47c26e7f83d8a5cc2407b72afb
Log:
Change assertion
Changed paths:
M ext/opcache/Optimizer/sccp.c
Diff:
diff --git a/ext/opcache/Optimizer/sccp.c b/ext/opcache/Optimizer/sccp.c
index 996eb10..8b5f88c 100644
--- a/ext/opcache/Optimizer/sccp.c
+++ b/ext/opcache/Optimizer/sccp.c
@@ -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);