diff --git a/compile.c b/compile.c index e68f06ef1f..b330511b12 100644 --- a/compile.c +++ b/compile.c @@ -3192,7 +3192,7 @@ optimize_args_splat_no_copy(rb_iseq_t *iseq, INSN *insn, LINK_ELEMENT *niobj, unsigned int set_flags, unsigned int unset_flags) { LINK_ELEMENT *iobj = (LINK_ELEMENT *)insn; - if (!IS_NEXT_INSN_ID(niobj, send)) { + if (!IS_NEXT_INSN_ID(niobj, send) && !IS_NEXT_INSN_ID(niobj, invokesuper)) { return false; } niobj = niobj->next;