summaryrefslogtreecommitdiff
path: root/compile.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 /compile.c
parente5c2bf55d0c5b71227284a577301b3c48894032e (diff)
downloadruby-7459a32af3e89ea9990efb4d76bfdc869e480ffe.tar.gz
suppress warnings for probable NULL dererefences
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/compile.c b/compile.c
index 055d4e85f5..62a047be78 100644
--- a/compile.c
+++ b/compile.c
@@ -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;