[前][次][番号順一覧][スレッド一覧]

ruby-changes:41295

From: nobu <ko1@a...>
Date: Tue, 29 Dec 2015 17:36:36 +0900 (JST)
Subject: [ruby-changes:41295] nobu:r53367 (trunk): compile.c: adjust label reference

nobu	2015-12-29 17:36:22 +0900 (Tue, 29 Dec 2015)

  New Revision: 53367

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=53367

  Log:
    compile.c: adjust label reference
    
    * compile.c (new_adjust_body): labels referred by adjuststack
      shoud not be optimized away.

  Modified files:
    trunk/compile.c
Index: compile.c
===================================================================
--- compile.c	(revision 53366)
+++ compile.c	(revision 53367)
@@ -989,6 +989,7 @@ new_adjust_body(rb_iseq_t *iseq, LABEL * https://github.com/ruby/ruby/blob/trunk/compile.c#L989
     adjust->link.next = 0;
     adjust->label = label;
     adjust->line_no = line;
+    if (label) LABEL_REF(label);
     return adjust;
 }
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]