summaryrefslogtreecommitdiff
path: root/ext/opcache/Optimizer/dfa_pass.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2018-09-10 15:26:38 +0300
committerDmitry Stogov <dmitry@zend.com>2018-09-10 15:26:38 +0300
commit64dad57d198cb9614e55014948f381727185bf72 (patch)
tree554eb4916a6b620a5b342ed4604eda4015688682 /ext/opcache/Optimizer/dfa_pass.c
parent27b270de896be6dbe3ce70866421d704cbee4c6f (diff)
downloadphp-git-64dad57d198cb9614e55014948f381727185bf72.tar.gz
Fixed wrong assertion
Diffstat (limited to 'ext/opcache/Optimizer/dfa_pass.c')
-rw-r--r--ext/opcache/Optimizer/dfa_pass.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/ext/opcache/Optimizer/dfa_pass.c b/ext/opcache/Optimizer/dfa_pass.c
index 07cff986df..7e52226af5 100644
--- a/ext/opcache/Optimizer/dfa_pass.c
+++ b/ext/opcache/Optimizer/dfa_pass.c
@@ -704,8 +704,7 @@ optimize_jmpnz:
take_successor_1(ssa, block_num, block);
goto optimize_nop;
}
- } else {
- ZEND_ASSERT(block->successors_count == 2);
+ } else if (block->successors_count == 2) {
if (block->successors[0] == next_block_num) {
take_successor_0(ssa, block_num, block);
if (opline->op1_type == IS_CV && (OP1_INFO() & MAY_BE_UNDEF)) {
@@ -737,8 +736,7 @@ optimize_jmpnz:
opline->extended_value = 0;
opline->opcode = ZEND_JMP;
goto optimize_jmp;
- } else {
- ZEND_ASSERT(block->successors_count == 2);
+ } else if (block->successors_count == 2) {
if (block->successors[0] == block->successors[1]) {
take_successor_0(ssa, block_num, block);
if (block->successors[0] == next_block_num) {