Update yjit.rb

This commit is contained in:
Maxime Chevalier-Boisvert 2021-07-15 14:57:27 -04:00 committed by Alan Wu
parent 84920fe8ee
commit 1943b27fe9
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ module YJIT
def self.disasm_block(cs, block, highlight)
comments = comments_for(block.address, block.address + block.code.length)
comment_idx = 0
str = ''.dup
str = +''
cs.disasm(block.code, block.address).each do |i|
while (comment = comments[comment_idx]) && comment.address <= i.address
str << " ; #{highlight.call(comment.comment)}\n"