зеркало из https://github.com/github/ruby.git
[PRISM] Remove unnecessary flag setting
VM_CALL_KW_SPLAT and VM_CALL_KW_SPLAT_MUT are guaranteeed to be set in this code path, so we don't need to set it again.
This commit is contained in:
Родитель
c546ee3bb5
Коммит
00f9456f16
|
@ -1038,15 +1038,11 @@ pm_setup_args(pm_arguments_node_t *arguments_node, int *flags, struct rb_callinf
|
|||
else {
|
||||
PM_SWAP;
|
||||
}
|
||||
|
||||
*flags |= VM_CALL_KW_SPLAT_MUT;
|
||||
}
|
||||
|
||||
pm_assoc_splat_node_t *assoc_splat = (pm_assoc_splat_node_t *)cur_node;
|
||||
PM_COMPILE_NOT_POPPED(assoc_splat->value);
|
||||
|
||||
*flags |= VM_CALL_KW_SPLAT;
|
||||
|
||||
if (len > 1) {
|
||||
ADD_SEND(ret, &dummy_line_node, id_core_hash_merge_kwd, INT2FIX(2));
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче