From a50598e692c224bed0be990f15a1e4c356514e3b Mon Sep 17 00:00:00 2001 From: ko1 Date: Tue, 7 Nov 2017 05:08:09 +0000 Subject: use GET_EC() directly git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60681 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- iseq.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'iseq.c') diff --git a/iseq.c b/iseq.c index 757e0f37e5..db9810f565 100644 --- a/iseq.c +++ b/iseq.c @@ -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 ? -- cgit v1.2.3