diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2017-10-25 18:32:44 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-10-24 19:24:50 +0900 |
commit | 7459a32af3e89ea9990efb4d76bfdc869e480ffe (patch) | |
tree | 3faf1fdeabfed9a3d05106fa493e24dfcbbbbe12 /vm.c | |
parent | e5c2bf55d0c5b71227284a577301b3c48894032e (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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; } |