Remove always-false opcode check

opcode cannot be ZEND_POST_INC because of the if check above.
This commit is contained in:
Niels Dossche 2024-07-01 23:13:53 +02:00
parent 7407e760f1
commit 00b36ce44a

View file

@ -4773,7 +4773,7 @@ static int zend_jit_inc_dec(zend_jit_ctx *jit, const zend_op *opline, uint32_t o
} }
if ((opline->opcode == ZEND_PRE_INC || opline->opcode == ZEND_PRE_DEC) && if ((opline->opcode == ZEND_PRE_INC || opline->opcode == ZEND_PRE_DEC) &&
opline->result_type != IS_UNUSED) { opline->result_type != IS_UNUSED) {
if (opline->opcode == ZEND_PRE_INC || opline->opcode == ZEND_POST_INC) { if (opline->opcode == ZEND_PRE_INC) {
if (Z_MODE(res_addr) == IS_REG) { if (Z_MODE(res_addr) == IS_REG) {
jit_set_Z_DVAL(jit, res_addr, ir_CONST_DOUBLE((double)ZEND_LONG_MAX + 1.0)); jit_set_Z_DVAL(jit, res_addr, ir_CONST_DOUBLE((double)ZEND_LONG_MAX + 1.0));
} else { } else {