aboutsummaryrefslogtreecommitdiffstats
path: root/vm_insnhelper.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-07-14 11:23:10 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-07-14 11:23:10 +0000
commit0f36e8fc03a5c6433972d6bb5f177d5f6e106bac (patch)
tree1eb8130db6c5693bd7a57935b7f49b74ba53aa82 /vm_insnhelper.c
parente53a46a58b76fc8c8f43fb0cc389948e77be44ff (diff)
downloadruby-0f36e8fc03a5c6433972d6bb5f177d5f6e106bac.tar.gz
* eval.c (frame_func_id), vm_eval.c (rb_iterate),
vm_insnhelper.c (vm_yield_with_cfunc): as the name of a C-level block, use the current method ID at the creation point. [ruby-dev:41852] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r--vm_insnhelper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c
index c801cd9c8a..2e01703f7c 100644
--- a/vm_insnhelper.c
+++ b/vm_insnhelper.c
@@ -717,7 +717,7 @@ vm_yield_with_cfunc(rb_thread_t *th, const rb_block_t *block,
blockarg = Qnil;
}
- vm_push_frame(th, 0, VM_FRAME_MAGIC_IFUNC,
+ vm_push_frame(th, (rb_iseq_t *)ifunc, VM_FRAME_MAGIC_IFUNC,
self, (VALUE)block->dfp,
0, th->cfp->sp, block->lfp, 1);