diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-02-16 09:15:26 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-02-16 09:15:26 +0000 |
commit | ccc388d806b50999d1780b3aa7bce521644b8bf9 (patch) | |
tree | 7e715e9ae3e4e7a883ed193471a06d06832b9b81 /vm_insnhelper.c | |
parent | 3261cfd88172a0ab86dcdffd4a8b0b5604970146 (diff) | |
download | ruby-ccc388d806b50999d1780b3aa7bce521644b8bf9.tar.gz |
use rb_iseq_check() for USE_LAZY_LOAD, too.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r-- | vm_insnhelper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c index a1c3a9809d..903e6c4ab5 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -2562,7 +2562,7 @@ vm_invoke_iseq_block(rb_thread_t *th, rb_control_frame_t *reg_cfp, struct rb_calling_info *calling, const struct rb_call_info *ci, int is_lambda, const struct rb_captured_block *captured) { - const rb_iseq_t *iseq = captured->code.iseq; + const rb_iseq_t *iseq = rb_iseq_check(captured->code.iseq); const int arg_size = iseq->body->param.size; VALUE * const rsp = GET_SP() - calling->argc; int opt_pc = vm_callee_setup_block_arg(th, calling, ci, iseq, rsp, is_lambda ? arg_setup_lambda : arg_setup_block); |