1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

parse.y: Remove unneeded code

Because block_append sets prelude->nd_loc.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
mame 2018-01-05 16:04:00 +00:00
parent 5fe35fee8f
commit 8d06762c27

View file

@ -5643,7 +5643,6 @@ yycompile0(VALUE arg)
rb_hash_aset(opt, rb_sym_intern_ascii_cstr("coverage_enabled"), cov); rb_hash_aset(opt, rb_sym_intern_ascii_cstr("coverage_enabled"), cov);
prelude = block_append(ruby_eval_tree_begin, body, &body->nd_loc /* dummy location */); prelude = block_append(ruby_eval_tree_begin, body, &body->nd_loc /* dummy location */);
add_mark_object(opt); add_mark_object(opt);
prelude->nd_loc = body->nd_loc;
tree->nd_body = prelude; tree->nd_body = prelude;
parser->ast->body.compile_option = opt; parser->ast->body.compile_option = opt;
} }