aboutsummaryrefslogtreecommitdiffstats
path: root/vm_callinfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'vm_callinfo.h')
-rw-r--r--vm_callinfo.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/vm_callinfo.h b/vm_callinfo.h
index b3aafd6de1..700fd3dc6c 100644
--- a/vm_callinfo.h
+++ b/vm_callinfo.h
@@ -334,7 +334,9 @@ static inline const struct rb_callable_method_entry_struct *
vm_cc_cme(const struct rb_callcache *cc)
{
VM_ASSERT(IMEMO_TYPE_P(cc, imemo_callcache));
- VM_ASSERT(!vm_cc_markable(cc) || cc->cme_ != NULL);
+ VM_ASSERT(cc->call_ == NULL || // not initialized yet
+ !vm_cc_markable(cc) ||
+ cc->cme_ != NULL);
return cc->cme_;
}