зеркало из https://github.com/github/ruby.git
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
This commit is contained in:
Родитель
d3d40e99f1
Коммит
6b346a7c85
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче