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:
parent
412d26a385
commit
55e52c19e7
Notes:
git
2021-01-07 23:44:57 +09:00
1 changed files with 1 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue