diff options
Diffstat (limited to 'tool')
-rw-r--r-- | tool/instruction.rb | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/tool/instruction.rb b/tool/instruction.rb index 8d55683da3..1a09ab347c 100644 --- a/tool/instruction.rb +++ b/tool/instruction.rb @@ -1,4 +1,4 @@ -# +#!./miniruby # # @@ -505,14 +505,9 @@ class RubyVM orets = insn.rets oopes = insn.opes ocomm = insn.comm + oname = insn.name - after = nil - SPECIAL_INSN_FOR_SC_AFTER.any?{|k, v| - if k =~ insn.name - after = v - break - end - } + after = SPECIAL_INSN_FOR_SC_AFTER.find {|k, v| k =~ oname} insns = [] FROM_SC.each{|from| |