From 75d25ede15e664ee0048ebc4e84e9e34838c2313 Mon Sep 17 00:00:00 2001 From: mame Date: Wed, 13 Jun 2018 04:51:43 +0000 Subject: Make VM_INSN_INFO_TABLE_IMPL=1 work rb_iseq_insns_info_decode_positions is used only when VM_INSN_INFO_TABLE_IMPL=2. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63645 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- iseq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'iseq.c') diff --git a/iseq.c b/iseq.c index e5210ca750..f64177dc5b 100644 --- a/iseq.c +++ b/iseq.c @@ -493,16 +493,16 @@ rb_iseq_insns_info_encode_positions(const rb_iseq_t *iseq) #endif } +#if VM_INSN_INFO_TABLE_IMPL == 2 unsigned int * rb_iseq_insns_info_decode_positions(const struct rb_iseq_constant_body *body) { -#if VM_INSN_INFO_TABLE_IMPL == 2 int size = body->insns_info.size; int max_pos = body->iseq_size; struct succ_index_table *sd = body->insns_info.succ_index_table; return succ_index_table_invert(max_pos, sd, size); -#endif } +#endif static VALUE finish_iseq_build(rb_iseq_t *iseq) -- cgit v1.2.3