Skip to content

Commit 0af8683

Browse files
committed
fix uninitialized opline in typed property write elision
Signed-off-by: azjezz <azjezz@protonmail.com>
1 parent 3564979 commit 0af8683

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Zend/Optimizer/dfa_pass.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,10 +1107,10 @@ void zend_dfa_optimize_op_array(zend_op_array *op_array, zend_optimizer_ctx *ctx
11071107
}
11081108

11091109
/* The assigned value lives in the following OP_DATA opline. */
1110-
const zend_op *data = op + 1;
1110+
zend_op *data = op + 1;
11111111
uint32_t val_type;
11121112
if (data->op1_type == IS_CONST) {
1113-
val_type = _const_op_type(CRT_CONSTANT(data->op1));
1113+
val_type = _const_op_type(CRT_CONSTANT_EX(op_array, data, data->op1));
11141114
} else if (ssa->ops[i + 1].op1_use >= 0) {
11151115
val_type = ssa->var_info[ssa->ops[i + 1].op1_use].type;
11161116
} else {

0 commit comments

Comments
 (0)