summaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-04-10 07:18:25 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-04-10 07:18:25 +0000
commit91db3b6c6b0daff732c0bacfcc4db397f1df4a42 (patch)
tree8763c83b320d56ee6dbc5017ade01ec9637bc0ae /compile.c
parentb8e3a4bd2c3e5c508e6bd48f6686969c085042ce (diff)
compile.c: name a hidden local variable as a predefined ID
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67496 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/compile.c b/compile.c
index 92d9c35e28..e937c337e6 100644
--- a/compile.c
+++ b/compile.c
@@ -1366,12 +1366,10 @@ iseq_set_exception_local_table(rb_iseq_t *iseq)
/* TODO: every id table is same -> share it.
* Current problem is iseq_free().
*/
- ID id_dollar_bang;
ID *ids = (ID *)ALLOC_N(ID, 1);
- CONST_ID(id_dollar_bang, "#$!");
iseq->body->local_table_size = 1;
- ids[0] = id_dollar_bang;
+ ids[0] = idERROR_INFO;
iseq->body->local_table = ids;
return COMPILE_OK;
}