aboutsummaryrefslogtreecommitdiffstats
path: root/iseq.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-07 05:08:09 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-07 05:08:09 +0000
commita50598e692c224bed0be990f15a1e4c356514e3b (patch)
treefbb782473daab916cce17276391e65a1fc52399a /iseq.c
parentadc05debd86ec0deeb532d8e91e2a7fbc1011455 (diff)
downloadruby-a50598e692c224bed0be990f15a1e4c356514e3b.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.c3
1 files changed, 1 insertions, 2 deletions
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 ?