Skip to content

Commit f1df587

Browse files
committed
JIT build fix
1 parent b853c50 commit f1df587

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ext/opcache/jit/zend_jit.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,13 @@ static int zend_jit_assign_to_variable(dasm_State **Dst,
156156
zend_jit_addr res_addr,
157157
bool check_exception);
158158

159+
bool dominates(const zend_basic_block *blocks, int a, int b) {
160+
while (blocks[b].level > blocks[a].level) {
161+
b = blocks[b].idom;
162+
}
163+
return a == b;
164+
}
165+
159166
static bool zend_ssa_is_last_use(const zend_op_array *op_array, const zend_ssa *ssa, int var, int use)
160167
{
161168
int next_use;

0 commit comments

Comments
 (0)