Skip to content

Commit fa29174

Browse files
committed
ext/opcache/jit/zend_jit_internal: convert ZEND_OP_TRACE_INFO() to function
1 parent da18809 commit fa29174

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
@@ -498,8 +498,10 @@ typedef struct _zend_jit_op_array_trace_extension {
498498
zend_op_trace_info trace_info[1];
499499
} zend_jit_op_array_trace_extension;
500500

501-
#define ZEND_OP_TRACE_INFO(opline, offset) \
502-
((zend_op_trace_info*)(((char*)opline) + offset))
501+
static zend_always_inline zend_op_trace_info *ZEND_OP_TRACE_INFO(const zend_op *opline, size_t offset)
502+
{
503+
return (zend_op_trace_info*)((char*)opline + offset);
504+
}
503505

504506
/* Recorder */
505507
typedef enum _zend_jit_trace_op {

0 commit comments

Comments
 (0)