Skip to content

Commit beea690

Browse files
committed
move j var declaration into for loop statement
1 parent 4ac3c9a commit beea690

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

ext/opcache/jit/zend_jit_trace.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3997,8 +3997,7 @@ static int zend_jit_find_ssa_var(const zend_op_array *op_array,
39973997

39983998
ZEND_WORKLIST_ALLOCA(&worklist, ssa->cfg.blocks_count, use_heap);
39993999

4000-
uint32_t j;
4001-
for (j = 0; j < bb->predecessors_count; j++) {
4000+
for (uint32_t j = 0; j < bb->predecessors_count; j++) {
40024001
b = ssa->cfg.predecessors[bb->predecessor_offset + j];
40034002
zend_worklist_push(&worklist, b);
40044003
}
@@ -4039,7 +4038,7 @@ static int zend_jit_find_ssa_var(const zend_op_array *op_array,
40394038
if (ssa_var >= 0) {
40404039
goto found;
40414040
}
4042-
for (j = 0; j < bb->predecessors_count; j++) {
4041+
for (uint32_t j = 0; j < bb->predecessors_count; j++) {
40434042
b = ssa->cfg.predecessors[bb->predecessor_offset + j];
40444043
zend_worklist_push(&worklist, b);
40454044
}

0 commit comments

Comments
 (0)