Skip to content

Commit b1e1fc6

Browse files
committed
ext/opcache/jit/zend_jit_internal: convert zend_jit_op_array_hash() to function
1 parent 3d43761 commit b1e1fc6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ext/opcache/jit/zend_jit_internal.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,8 +283,10 @@ typedef struct _zend_jit_op_array_hot_extension {
283283
const void *orig_handlers[1];
284284
} zend_jit_op_array_hot_extension;
285285

286-
#define zend_jit_op_array_hash(op_array) \
287-
zend_jit_hash((op_array)->opcodes)
286+
static zend_always_inline zend_ulong zend_jit_op_array_hash(const zend_op_array *op_array)
287+
{
288+
return zend_jit_hash(op_array->opcodes);
289+
}
288290

289291
extern const zend_op *zend_jit_halt_op;
290292

0 commit comments

Comments
 (0)