diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-06-18 01:50:46 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-06-18 01:50:46 +0000 |
commit | d0b92e798feb650cbb912d3b4bc4546a1caac6ad (patch) | |
tree | 66c04b516932b3d73cf97617eb5c72b2f7a889da | |
parent | c15ad4a4ac0f92f8828aafcad35e50ddce22e712 (diff) | |
download | ruby-d0b92e798feb650cbb912d3b4bc4546a1caac6ad.tar.gz |
Unnecessary volatile
* vm_eval.c (rb_yield_splat, eval_string_with_cref): remove
unnecessary volatile outside PUSH_TAG/POP_TAG.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | vm_eval.c | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -1068,7 +1068,7 @@ VALUE rb_yield_splat(VALUE values) { VALUE tmp = rb_check_array_type(values); - volatile VALUE v; + VALUE v; if (NIL_P(tmp)) { rb_raise(rb_eArgError, "not an array"); } @@ -1298,11 +1298,8 @@ eval_string_with_cref(VALUE self, VALUE src, VALUE scope, rb_cref_t *const cref_ rb_thread_t *th = GET_THREAD(); rb_env_t *env = NULL; rb_block_t block, *base_block; - volatile VALUE file; - volatile int line; - - file = filename ? filename : rb_source_location(&lineno); - line = lineno; + VALUE file = filename ? filename : rb_source_location(&lineno); + int line = lineno; { rb_cref_t *cref = cref_arg; |