Fix array allocation optimization for f(*a, kw: 1)
This was broken during the refactoring in 22e488464a412afa58f201c49e54773aa8011320.
This commit is contained in:
parent
ed2f685253
commit
c388784943
@ -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) ||
|
||||
|
Loading…
x
Reference in New Issue
Block a user