Skip to content

Commit 85634c9

Browse files
committed
Voidify zend_infer_ranges()
It always returned SUCCESS
1 parent 6c928f3 commit 85634c9

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

Zend/Optimizer/zend_inference.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1768,7 +1768,7 @@ static void zend_infer_ranges_warmup(const zend_op_array *op_array, zend_ssa *ss
17681768
free_alloca(worklist, use_heap);
17691769
}
17701770

1771-
static int zend_infer_ranges(const zend_op_array *op_array, zend_ssa *ssa) /* {{{ */
1771+
static void zend_infer_ranges(const zend_op_array *op_array, zend_ssa *ssa) /* {{{ */
17721772
{
17731773
int worklist_len = zend_bitset_len(ssa->vars_count);
17741774
zend_bitset worklist;
@@ -1882,8 +1882,6 @@ static int zend_infer_ranges(const zend_op_array *op_array, zend_ssa *ssa) /* {{
18821882
}
18831883

18841884
free_alloca(worklist, use_heap);
1885-
1886-
return SUCCESS;
18871885
}
18881886
/* }}} */
18891887

@@ -4530,9 +4528,7 @@ ZEND_API zend_result zend_ssa_inference(zend_arena **arena, const zend_op_array
45304528
return FAILURE;
45314529
}
45324530

4533-
if (zend_infer_ranges(op_array, ssa) != SUCCESS) {
4534-
return FAILURE;
4535-
}
4531+
zend_infer_ranges(op_array, ssa);
45364532

45374533
if (zend_infer_types(op_array, script, ssa, optimization_level) != SUCCESS) {
45384534
return FAILURE;

0 commit comments

Comments
 (0)