Skip to content

Commit

Permalink
Fix array allocation optimization for f(*a, kw: 1)
Browse files Browse the repository at this point in the history
This was broken during the refactoring in 22e4884.
  • Loading branch information
jeremyevans committed Mar 14, 2024
1 parent ed2f685 commit c388784
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compile.c
Expand Up @@ -3983,7 +3983,7 @@ iseq_peephole_optimize(rb_iseq_t *iseq, LINK_ELEMENT *list, const int do_tailcal
* duphash
* send
*/
if (optimize_args_splat_no_copy(iseq, iobj, niobj->next,
if (optimize_args_splat_no_copy(iseq, iobj, niobj,
VM_CALL_ARGS_SPLAT|VM_CALL_KW_SPLAT|VM_CALL_KW_SPLAT_MUT, VM_CALL_ARGS_BLOCKARG)) goto optimized_splat;

if (IS_NEXT_INSN_ID(niobj, getlocal) || IS_NEXT_INSN_ID(niobj, getinstancevariable) ||
Expand Down

0 comments on commit c388784

Please sign in to comment.