summaryrefslogtreecommitdiff
path: root/tool/ruby_vm/views/_mjit_compile_insn.erb
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2020-04-06 01:49:05 -0700
committerTakashi Kokubun <takashikkbn@gmail.com>2020-04-06 01:55:18 -0700
commit3194cd36e284bc761b378cbe065538c8d94da8df (patch)
treeb8ca4dae27245482ca56179edf30a994fdbc8fa1 /tool/ruby_vm/views/_mjit_compile_insn.erb
parent928bb17770ca0648d4098a7c941e4cc4ec22e004 (diff)
Delay definition of pc_moved_p
to unify the duplicated declarations and to make sure it's not used until set properly. Also changed it from legacy TRUE/FALSE to stdbool.
Diffstat (limited to 'tool/ruby_vm/views/_mjit_compile_insn.erb')
-rw-r--r--tool/ruby_vm/views/_mjit_compile_insn.erb1
1 files changed, 0 insertions, 1 deletions
diff --git a/tool/ruby_vm/views/_mjit_compile_insn.erb b/tool/ruby_vm/views/_mjit_compile_insn.erb
index fe545e691d..e688f0853e 100644
--- a/tool/ruby_vm/views/_mjit_compile_insn.erb
+++ b/tool/ruby_vm/views/_mjit_compile_insn.erb
@@ -7,7 +7,6 @@
% # details.
fprintf(f, "{\n");
{
- MAYBE_UNUSED(int pc_moved_p) = FALSE;
% # compiler: Prepare operands which may be used by `insn.call_attribute`
% insn.opes.each_with_index do |ope, i|
MAYBE_UNUSED(<%= ope.fetch(:decl) %>) = (<%= ope.fetch(:type) %>)operands[<%= i %>];