diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-11-07 05:08:09 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-11-07 05:08:09 +0000 |
commit | 4049ffb58e13be7e8d84a12254dcdf2df60a4491 (patch) | |
tree | fbb782473daab916cce17276391e65a1fc52399a /iseq.c | |
parent | da9869625a7d73c844db27dfe09e574b43481877 (diff) | |
download | ruby-4049ffb58e13be7e8d84a12254dcdf2df60a4491.tar.gz |
use GET_EC() directly
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60681 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'iseq.c')
-rw-r--r-- | iseq.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -631,7 +631,6 @@ rb_iseq_load(VALUE data, VALUE parent, VALUE opt) rb_iseq_t * rb_iseq_compile_with_option(VALUE src, VALUE file, VALUE realpath, VALUE line, const struct rb_block *base_block, VALUE opt) { - rb_thread_t *th = GET_THREAD(); rb_iseq_t *iseq = NULL; const rb_iseq_t *const parent = base_block ? vm_block_iseq(base_block) : NULL; rb_compile_option_t option; @@ -664,7 +663,7 @@ rb_iseq_compile_with_option(VALUE src, VALUE file, VALUE realpath, VALUE line, c if (!ast->root) { rb_ast_dispose(ast); - rb_exc_raise(th->ec->errinfo); + rb_exc_raise(GET_EC()->errinfo); } else { INITIALIZED VALUE label = parent ? |