diff options
Diffstat (limited to 'eval_method.h')
-rw-r--r-- | eval_method.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/eval_method.h b/eval_method.h index 5abf06d67b..d0351c82e1 100644 --- a/eval_method.h +++ b/eval_method.h @@ -144,7 +144,7 @@ rb_add_method(VALUE klass, ID mid, NODE * node, int noex) if (st_lookup(RCLASS(klass)->m_tbl, mid, (st_data_t *)&old_node)) { if (old_node) { if (nd_type(old_node->nd_body->nd_body) == NODE_CFUNC) { - yarv_check_redefinition_opt_method(old_node); + rb_vm_check_redefinition_opt_method(old_node); } if (RTEST(ruby_verbose) && old_node->nd_cnt == 0 && old_node->nd_body) { rb_warning("method redefined; discarding old %s", rb_id2name(mid)); |