mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fix vm_search_invokeblock
call_ needs to be vm_invokeblock_i, and flags is also not empty.
This commit is contained in:
parent
8ec8f37566
commit
52b1716c78
1 changed files with 8 additions and 1 deletions
|
@ -4438,7 +4438,14 @@ vm_search_method_wrap(const struct rb_control_frame_struct *reg_cfp, struct rb_c
|
|||
static const struct rb_callcache *
|
||||
vm_search_invokeblock(const struct rb_control_frame_struct *reg_cfp, struct rb_call_data *cd, VALUE recv)
|
||||
{
|
||||
return rb_vm_empty_cc();
|
||||
static const struct rb_callcache cc = {
|
||||
.flags = T_IMEMO | (imemo_callcache << FL_USHIFT) | VM_CALLCACHE_UNMARKABLE,
|
||||
.klass = 0,
|
||||
.cme_ = 0,
|
||||
.call_ = vm_invokeblock_i,
|
||||
.aux_ = {0},
|
||||
};
|
||||
return &cc;
|
||||
}
|
||||
|
||||
# define mexp_search_method vm_search_method_wrap
|
||||
|
|
Loading…
Add table
Reference in a new issue