1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

simplify assertion

searched_cme is used only this line so the variable is not needed.
This commit is contained in:
Koichi Sasada 2021-01-07 18:06:24 +09:00
parent 412d26a385
commit 55e52c19e7
Notes: git 2021-01-07 23:44:57 +09:00

View file

@ -1695,10 +1695,7 @@ vm_search_cc(const VALUE klass, const struct rb_callinfo * const ci)
return &vm_empty_cc;
}
#if VM_CHECK_MODE > 0
const rb_callable_method_entry_t *searched_cme = rb_callable_method_entry(klass, mid);
VM_ASSERT(cme == searched_cme);
#endif
VM_ASSERT(cme == rb_callable_method_entry(klass, mid));
const struct rb_callcache *cc = vm_cc_new(klass, cme, vm_call_general);
METHOD_ENTRY_CACHED_SET((struct rb_callable_method_entry_struct *)cme);