summaryrefslogtreecommitdiffstats
path: root/vm_method.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm_method.c')
-rw-r--r--vm_method.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vm_method.c b/vm_method.c
index 4b747e9d5..9ebeeb4a4 100644
--- a/vm_method.c
+++ b/vm_method.c
@@ -758,6 +758,8 @@ me_opts(const rb_method_entry_t *me)
case VM_METHOD_TYPE_NOTIMPLEMENTED:
case VM_METHOD_TYPE_UNDEF:
return 0;
+ case VM_METHOD_TYPE_OPTIMIZED:
+ return (void *)me->body.optimize_type;
default:
rb_bug("rb_add_method: unsupported method type (%d)\n", me->type);
return 0;