File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 3232
3333void zend_optimizer_nop_removal (zend_op_array * op_array , zend_optimizer_ctx * ctx )
3434{
35- zend_op * end , * opline ;
35+ zend_op * opline ;
3636 uint32_t new_count , i , shift ;
3737 uint32_t * shiftlist ;
3838 ALLOCA_FLAG (use_heap );
3939
4040 shiftlist = (uint32_t * )do_alloca (sizeof (uint32_t ) * op_array -> last , use_heap );
4141 i = new_count = shift = 0 ;
42- end = op_array -> opcodes + op_array -> last ;
42+ const zend_op * end = op_array -> opcodes + op_array -> last ;
4343 for (opline = op_array -> opcodes ; opline < end ; opline ++ ) {
4444
4545 /* Kill JMP-over-NOP-s */
4646 if (opline -> opcode == ZEND_JMP && ZEND_OP1_JMP_ADDR (opline ) > op_array -> opcodes + i ) {
4747 /* check if there are only NOPs under the branch */
48- zend_op * target = ZEND_OP1_JMP_ADDR (opline ) - 1 ;
48+ const zend_op * target = ZEND_OP1_JMP_ADDR (opline ) - 1 ;
4949
5050 while (target -> opcode == ZEND_NOP ) {
5151 target -- ;
You can’t perform that action at this time.
0 commit comments