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 /compile.c | |
parent | e5c2bf55d0c5b71227284a577301b3c48894032e (diff) |
suppress warnings for probable NULL dererefences
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/5015
Diffstat (limited to 'compile.c')
-rw-r--r-- | compile.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -4774,6 +4774,7 @@ compile_massign_lhs(rb_iseq_t *iseq, LINK_ANCHOR *const pre, LINK_ANCHOR *const LINK_ELEMENT *insn_element = LAST_ELEMENT(pre); iobj = (INSN *)get_prev_insn((INSN *)insn_element); /* send insn */ + ASSUME(iobj); ELEM_REMOVE(LAST_ELEMENT(pre)); ELEM_REMOVE((LINK_ELEMENT *)iobj); pre->last = iobj->link.prev; |