diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-10-19 12:13:05 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-10-19 12:13:05 +0900 |
| commit | 90484cac6320ccb158d7373a2f865dddd623de17 (patch) | |
| tree | cf63c4e9fff7cbaa0bba3557850358ea91c4c091 /mrbgems/mruby-compiler/core/parse.y | |
| parent | 5d5e4f521464d134250501774f49f61f11dc3997 (diff) | |
| download | mruby-90484cac6320ccb158d7373a2f865dddd623de17.tar.gz mruby-90484cac6320ccb158d7373a2f865dddd623de17.zip | |
codegen.c: skip `OP_LOADSELF` using `OP_SSEND`.
Diffstat (limited to 'mrbgems/mruby-compiler/core/parse.y')
| -rw-r--r-- | mrbgems/mruby-compiler/core/parse.y | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/mrbgems/mruby-compiler/core/parse.y b/mrbgems/mruby-compiler/core/parse.y index c1f888047..ed4265a16 100644 --- a/mrbgems/mruby-compiler/core/parse.y +++ b/mrbgems/mruby-compiler/core/parse.y @@ -499,9 +499,7 @@ new_call(parser_state *p, node *a, mrb_sym b, node *c, int pass) static node* new_fcall(parser_state *p, mrb_sym b, node *c) { - node *n = new_self(p); - NODE_LINENO(n, c); - n = list4((node*)NODE_FCALL, n, nsym(b), c); + node *n = list4((node*)NODE_FCALL, 0, nsym(b), c); NODE_LINENO(n, c); return n; } |
