summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2017-10-25 18:32:44 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-10-24 19:24:50 +0900
commit7459a32af3e89ea9990efb4d76bfdc869e480ffe (patch)
tree3faf1fdeabfed9a3d05106fa493e24dfcbbbbe12 /vm.c
parente5c2bf55d0c5b71227284a577301b3c48894032e (diff)
suppress warnings for probable NULL dererefences
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/5015
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;
}