aboutsummaryrefslogtreecommitdiffstats
path: root/compile.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-29 08:36:22 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-29 08:36:22 +0000
commit1403dfbf317ad796d92518bf5a7cbc40f2912dff (patch)
tree3891ad2071214bcd1afea9c4909f11777819078f /compile.c
parent15960b37e82ba60455c480b1c23e1567255d3e05 (diff)
downloadruby-1403dfbf317ad796d92518bf5a7cbc40f2912dff.tar.gz
compile.c: adjust label reference
* compile.c (new_adjust_body): labels referred by adjuststack shoud not be optimized away. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 b70a069916..5c6c5f5f32 100644
--- a/compile.c
+++ b/compile.c
@@ -989,6 +989,7 @@ new_adjust_body(rb_iseq_t *iseq, LABEL *label, int line)
adjust->link.next = 0;
adjust->label = label;
adjust->line_no = line;
+ if (label) LABEL_REF(label);
return adjust;
}