File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -546,7 +546,8 @@ int dce_optimize_op_array(zend_op_array *op_array, zend_optimizer_ctx *optimizer
546
546
547
547
/* Optimistically assume all instructions and phis to be dead */
548
548
ctx .instr_dead = zend_arena_calloc (& optimizer_ctx -> arena , ctx .instr_worklist_len , sizeof (zend_ulong ));
549
- ctx .phi_dead = zend_arena_calloc (& optimizer_ctx -> arena , ctx .phi_worklist_len , sizeof (zend_ulong ));
549
+ ctx .phi_dead = zend_arena_alloc (& optimizer_ctx -> arena , ctx .phi_worklist_len * sizeof (zend_ulong ));
550
+ memset (ctx .phi_dead , 0xff , sizeof (zend_ulong ) * ctx .phi_worklist_len );
550
551
551
552
/* Mark non-CV phis as live. Even if the result is unused, we generally cannot remove one
552
553
* of the producing instructions, as it combines producing the result with control flow.
You can’t perform that action at this time.
0 commit comments