diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-09-06 13:58:01 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-09-06 13:58:01 +0900 |
| commit | ad3404229fbc86eb2e9b8cf1cfd4063be323622f (patch) | |
| tree | 09d99de64e6f9f7eacb6503be3df848e8e92b68c | |
| parent | fc1f7c4bf0a7ec762e730f7ee183cb0d3e0bf9da (diff) | |
| download | mruby-ad3404229fbc86eb2e9b8cf1cfd4063be323622f.tar.gz mruby-ad3404229fbc86eb2e9b8cf1cfd4063be323622f.zip | |
parse.y: refactoring `mrb_parser_parser()`.
| -rw-r--r-- | mrbgems/mruby-compiler/core/parse.y | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/mrbgems/mruby-compiler/core/parse.y b/mrbgems/mruby-compiler/core/parse.y index 6913eb1b9..7dc4d5f9d 100644 --- a/mrbgems/mruby-compiler/core/parse.y +++ b/mrbgems/mruby-compiler/core/parse.y @@ -6596,9 +6596,6 @@ mrb_parser_parse(parser_state *p, mrbc_context *c) p->tree = 0; return; } - if (!p->tree) { - p->tree = new_nil(p); - } parser_update_cxt(p, c); if (c && c->dump_result) { mrb_parser_dump(p->mrb, p->tree, 0); @@ -6608,7 +6605,6 @@ mrb_parser_parse(parser_state *p, mrbc_context *c) yyerror(p, "memory allocation error"); p->nerr++; p->tree = 0; - return; } MRB_END_EXC(p->jmp); } |
