aboutsummaryrefslogtreecommitdiffstats
path: root/vm_insnhelper.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r--vm_insnhelper.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c
index 92bc94767b..e88fb8a4c2 100644
--- a/vm_insnhelper.c
+++ b/vm_insnhelper.c
@@ -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);