diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-09-25 21:51:56 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-09-25 21:51:56 +0000 |
commit | 4dc25a1ab173bf16dfe268e20198d0fdbe06bd08 (patch) | |
tree | 0855e92f25d88735eab2f4e5748146d2bc77145c /load.c | |
parent | f7f95ef1bd1f9d93211cda63229d7dd31865c59b (diff) | |
download | ruby-4dc25a1ab173bf16dfe268e20198d0fdbe06bd08.tar.gz |
vm.c: fetch retval iff necessary
* vm.c (rb_vm_make_jump_tag_but_local_jump): get rid of fetching
retval when it is not used. it is necessary for local jump
state only.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60024 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'load.c')
-rw-r--r-- | load.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -627,6 +627,8 @@ rb_load_internal0(rb_thread_t *th, VALUE fname, int wrap) th->top_wrapper = wrapper; if (state) { + /* usually state == TAG_RAISE only, except for + * rb_iseq_load_iseq case */ VALUE exc = rb_vm_make_jump_tag_but_local_jump(state, Qundef); if (NIL_P(exc)) return state; th->ec.errinfo = exc; |