diff options
| author | Kevin Newton <kddnewton@gmail.com> | 2024-07-18 13:31:17 -0400 |
|---|---|---|
| committer | Kevin Newton <kddnewton@gmail.com> | 2024-07-18 15:30:45 -0400 |
| commit | 53710be557105826440fc705415af37856e19db5 (patch) | |
| tree | 5e5285f3befe3022e8b1938d8274b5404141edb5 | |
| parent | 50e7c8f05190656f674514e7c3abb8ad08e12bdb (diff) | |
[PRISM] Use concattoarray instead of splatarray+concatarray
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/11200
| -rw-r--r-- | prism_compile.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/prism_compile.c b/prism_compile.c index 3055543703..799ef636ef 100644 --- a/prism_compile.c +++ b/prism_compile.c @@ -1687,8 +1687,7 @@ pm_setup_args_core(const pm_arguments_node_t *arguments_node, const pm_node_t *b // // foo(a, *b, *c) // ^^ - PUSH_INSN1(ret, location, splatarray, Qfalse); - PUSH_INSN(ret, location, concatarray); + PUSH_INSN(ret, location, concattoarray); } has_splat = true; |
