From 32cff956bc72254cbbc9a23cb6c47853913a2fe6 Mon Sep 17 00:00:00 2001 From: mame Date: Thu, 20 Sep 2018 07:36:10 +0000 Subject: [PATCH] * compile.c (compile_case): emit opt_case_dispatch only on optimized mode git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64792 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compile.c b/compile.c index 7d221d5dee..83d992a2e9 100644 --- a/compile.c +++ b/compile.c @@ -5095,7 +5095,7 @@ compile_case(rb_iseq_t *iseq, LINK_ANCHOR *const ret, const NODE *const orig_nod ADD_INSNL(cond_seq, nd_line(orig_node), jump, endlabel); } - if (only_special_literals) { + if (only_special_literals && ISEQ_COMPILE_DATA(iseq)->option->specialized_instruction) { iseq_add_mark_object_compile_time(iseq, literals); ADD_INSN(ret, nd_line(orig_node), dup);