ruby-changes:50843
From: nobu <ko1@a...>
Date: Sun, 1 Apr 2018 00:49:02 +0900 (JST)
Subject: [ruby-changes:50843] nobu:r63050 (trunk): compile.c: end_label
nobu 2018-04-01 00:48:57 +0900 (Sun, 01 Apr 2018) New Revision: 63050 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63050 Log: compile.c: end_label * compile.c (compile_if): branch to end_label is not used if else_seq is not used. Modified files: trunk/compile.c Index: compile.c =================================================================== --- compile.c (revision 63049) +++ compile.c (revision 63050) @@ -4768,10 +4768,10 @@ compile_if(rb_iseq_t *iseq, LINK_ANCHOR https://github.com/ruby/ruby/blob/trunk/compile.c#L4768 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) { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/