diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-09-20 07:36:10 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-09-20 07:36:10 +0000 |
commit | c34cd91d92c98131f52ffe8e2e6d2f0b79e13d1e (patch) | |
tree | 554d7d5101ad655cbbcedc6b54f26bd0d8ff5e54 /compile.c | |
parent | 28cbf46f8ce2a84cfc2fdc82ad2f9c5ec935996a (diff) | |
download | ruby-c34cd91d92c98131f52ffe8e2e6d2f0b79e13d1e.tar.gz |
* 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
Diffstat (limited to 'compile.c')
-rw-r--r-- | compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |