Skip to content

Commit

Permalink
MJIT: Remove obsoleted variable
Browse files Browse the repository at this point in the history
no longer used after 4ea9d7d
  • Loading branch information
k0kubun committed Nov 25, 2022
1 parent 4ea9d7d commit 89a98ee
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/mjit/compiler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -351,15 +351,13 @@ def compile_ivar(insn_name, stack_size, pos, status, operands, body)
dest_shape_id = ic_copy.value >> C.SHAPE_FLAG_SHIFT
attr_index = ic_copy.value & ((1 << C.SHAPE_FLAG_SHIFT) - 1)

capa = nil
source_shape_id = if dest_shape_id == C.INVALID_SHAPE_ID
dest_shape_id
else
parent_id = C.rb_shape_get_shape_by_id(dest_shape_id).parent_id
parent = C.rb_shape_get_shape_by_id(parent_id)

if parent.type == C.SHAPE_CAPACITY_CHANGE
capa = parent.capacity
parent.parent_id
else
parent_id
Expand Down

0 comments on commit 89a98ee

Please sign in to comment.