summaryrefslogtreecommitdiff
path: root/vm_insnhelper.c
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2019-09-01 19:46:19 -0700
committerJeremy Evans <code@jeremyevans.net>2019-09-01 19:46:19 -0700
commitf58db5a6f5c7b5c2f5f8471adcf8b1fe9577c01a (patch)
tree7346adc4d5f979a2be7c083eeaf89538a6e17bee /vm_insnhelper.c
parentca11a7d74e5e992cf4b84180727259095f4c1e75 (diff)
downloadbundler-f58db5a6f5c7b5c2f5f8471adcf8b1fe9577c01a.tar.gz
Simplify setting of VM_CALL_KW_SPLAT in vm_call_method_missing
Pointed out by ko1.
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r--vm_insnhelper.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c
index c65a9e260a..185178797c 100644
--- a/vm_insnhelper.c
+++ b/vm_insnhelper.c
@@ -2407,10 +2407,7 @@ vm_call_method_missing(rb_execution_context_t *ec, rb_control_frame_t *reg_cfp,
CALLER_SETUP_ARG(reg_cfp, calling, orig_ci, 0);
argc = calling->argc+1;
- ci_entry.flag = VM_CALL_FCALL | VM_CALL_OPT_SEND;
- if (orig_ci->flag & VM_CALL_KW_SPLAT) {
- ci_entry.flag |= VM_CALL_KW_SPLAT;
- }
+ ci_entry.flag = VM_CALL_FCALL | VM_CALL_OPT_SEND | (orig_ci->flag & VM_CALL_KW_SPLAT);
ci_entry.mid = idMethodMissing;
ci_entry.orig_argc = argc;
ci = &ci_entry;