summaryrefslogtreecommitdiff
path: root/proc.c
diff options
context:
space:
mode:
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/proc.c b/proc.c
index 9536ee63bf..3b83b17c3b 100644
--- a/proc.c
+++ b/proc.c
@@ -1487,6 +1487,14 @@ rb_method_entry_arity(const rb_method_entry_t *me)
return -(iseq->argc + 1 + iseq->arg_post_len);
}
}
+ case VM_METHOD_TYPE_OPTIMIZED: {
+ switch (me->body.optimize_type) {
+ case OPTIMIZED_METHOD_TYPE_SEND:
+ return -1;
+ default:
+ break;
+ }
+ }
default:
rb_bug("rb_method_entry_arity: invalid method entry type (%d)", me->type);
}