summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/vm.c b/vm.c
index 2f6a244eee..a18b2140d3 100644
--- a/vm.c
+++ b/vm.c
@@ -1653,6 +1653,7 @@ rb_vm_cref_replace_with_duplicated_cref(void)
const rb_execution_context_t *ec = GET_EC();
const rb_control_frame_t *cfp = rb_vm_get_ruby_level_next_cfp(ec, ec->cfp);
rb_cref_t *cref = vm_cref_replace_with_duplicated_cref(cfp->ep);
+ ASSUME(cref);
return cref;
}