mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Respect redefinition in MicroJIT's opt_minus
This commit is contained in:
parent
f500c1e321
commit
e9ecf80d20
1 changed files with 2 additions and 2 deletions
|
@ -227,10 +227,10 @@ x86opnd_t const_ptr_opnd(void* ptr);
|
|||
|
||||
// Struct member operand with an array index
|
||||
#define member_opnd_idx(base_reg, struct_type, member_name, idx) mem_opnd( \
|
||||
8 * sizeof(((struct_type*)0)->member_name), \
|
||||
8 * sizeof(((struct_type*)0)->member_name[0]), \
|
||||
base_reg, \
|
||||
(offsetof(struct_type, member_name) + \
|
||||
sizeof(((struct_type*)0)->member_name) * idx) \
|
||||
sizeof(((struct_type*)0)->member_name[0]) * idx) \
|
||||
)
|
||||
|
||||
// Code block methods
|
||||
|
|
Loading…
Add table
Reference in a new issue