From 6b346a7c855bb6c9e5462ac64bad8e04344b1799 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 31 Mar 2018 15:48:57 +0000 Subject: compile.c: end_label * compile.c (compile_if): branch to end_label is not used if else_seq is not used. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63050 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- compile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compile.c') diff --git a/compile.c b/compile.c index c4fa08e35b..786b055079 100644 --- a/compile.c +++ b/compile.c @@ -4768,10 +4768,10 @@ compile_if(rb_iseq_t *iseq, LINK_ANCHOR *const ret, const NODE *const node, int node_body ? nd_last_column(node_body) : last_column, type == NODE_IF ? "then" : "else", branches); + end_label = NEW_LABEL(line); + ADD_INSNL(then_seq, line, jump, end_label); } ADD_SEQ(ret, then_seq); - end_label = NEW_LABEL(line); - ADD_INSNL(ret, line, jump, end_label); } if (else_label->refcnt) { -- cgit v1.2.3