Skip to content

Commit 00b36ce

Browse files
committed
Remove always-false opcode check
opcode cannot be ZEND_POST_INC because of the if check above.
1 parent 7407e76 commit 00b36ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/opcache/jit/zend_jit_ir.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4773,7 +4773,7 @@ static int zend_jit_inc_dec(zend_jit_ctx *jit, const zend_op *opline, uint32_t o
47734773
}
47744774
if ((opline->opcode == ZEND_PRE_INC || opline->opcode == ZEND_PRE_DEC) &&
47754775
opline->result_type != IS_UNUSED) {
4776-
if (opline->opcode == ZEND_PRE_INC || opline->opcode == ZEND_POST_INC) {
4776+
if (opline->opcode == ZEND_PRE_INC) {
47774777
if (Z_MODE(res_addr) == IS_REG) {
47784778
jit_set_Z_DVAL(jit, res_addr, ir_CONST_DOUBLE((double)ZEND_LONG_MAX + 1.0));
47794779
} else {

0 commit comments

Comments
 (0)