@@ -2502,8 +2502,6 @@ impl<'a> Emitter<'a> {
25022502
25032503 pub fn frame_state ( & self , insn_id : InsnId ) -> FrameState { self . fun . frame_state ( insn_id) }
25042504 pub fn profiled_type_of_at ( & self , insn : InsnId , iseq_insn_idx : usize ) -> Option < ProfiledType > { self . fun . profiled_type_of_at ( insn, iseq_insn_idx) }
2505- pub fn make_equal_to ( & mut self , old : InsnId , new : InsnId ) { self . fun . make_equal_to ( old, new) ; }
2506-
25072505 fn load_shape ( & mut self , recv : InsnId ) -> InsnId {
25082506 self . fun . load_shape ( self . block , recv)
25092507 }
@@ -4621,7 +4619,7 @@ impl Function {
46214619 let offset = SIZEOF_VALUE_I32 * ivar_index as i32 ;
46224620 ctx. push_insn ( Insn :: LoadField { recv : as_heap, id, offset, return_type : types:: BasicObject } )
46234621 } ;
4624- ctx. make_equal_to ( insn_id, replacement) ;
4622+ ctx. replace ( insn_id, replacement) ;
46254623 }
46264624 Insn :: DefinedIvar { self_val, id, pushval, state } => {
46274625 let frame_state = ctx. frame_state ( state) ;
@@ -4658,7 +4656,7 @@ impl Function {
46584656 // shape + iv name
46594657 ctx. push_insn ( Insn :: Const { val : Const :: Value ( Qnil ) } )
46604658 } ;
4661- ctx. make_equal_to ( insn_id, replacement) ;
4659+ ctx. replace ( insn_id, replacement) ;
46624660 }
46634661 Insn :: SetIvar { self_val, id, val, state, ic : _ } => {
46644662 let frame_state = ctx. frame_state ( state) ;
0 commit comments