Skip to content

Commit 530ce37

Browse files
committed
Fix missing ssa_op
I don't remember when these are missing :) I'll check later.
1 parent 4f5a6a3 commit 530ce37

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

ext/opcache/jit/zend_jit_ir.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14591,8 +14591,12 @@ static int zend_jit_fetch_obj(zend_jit_ctx *jit,
1459114591
if (on_this) {
1459214592
op1_info &= ~MAY_BE_RC1;
1459314593
}
14594-
if (ssa_op->op1_def >= 0) {
14595-
op1_info |= (ssa->var_info[ssa_op->op1_def].type & (MAY_BE_RC1|MAY_BE_RCN));
14594+
if (op1_info & (MAY_BE_RC1|MAY_BE_RCN)) {
14595+
if (!ssa_op) {
14596+
op1_info |= (MAY_BE_RC1|MAY_BE_RCN);
14597+
} else if (ssa_op->op1_def >= 0) {
14598+
op1_info |= (ssa->var_info[ssa_op->op1_def].type & (MAY_BE_RC1|MAY_BE_RCN));
14599+
}
1459614600
}
1459714601
jit_FREE_OP(jit, opline->op1_type, opline->op1, op1_info, opline);
1459814602
}

0 commit comments

Comments
 (0)