summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vm_eval.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/vm_eval.c b/vm_eval.c
index 8265091ad3..b90ff37c3a 100644
--- a/vm_eval.c
+++ b/vm_eval.c
@@ -632,8 +632,7 @@ rb_method_call_status(rb_execution_context_t *ec, const rb_callable_method_entry
rb_method_visibility_t visi;
if (UNDEFINED_METHOD_ENTRY_P(me)) {
- undefined:
- return scope == CALL_VCALL ? MISSING_VCALL : MISSING_NOENTRY;
+ goto undefined;
}
if (me->def->type == VM_METHOD_TYPE_REFINED) {
me = rb_resolve_refined_method_callable(Qnil, me);
@@ -667,6 +666,8 @@ rb_method_call_status(rb_execution_context_t *ec, const rb_callable_method_entry
}
return MISSING_NONE;
+ undefined:
+ return scope == CALL_VCALL ? MISSING_VCALL : MISSING_NOENTRY;
}