@@ -186,8 +186,7 @@ impl<'a, 'gcc, 'tcx> IntrinsicCallMethods<'tcx> for Builder<'a, 'gcc, 'tcx> {
186186 // NOTE: since jumps were added in a place
187187 // count_leading_zeroes() does not expect, the current blocks
188188 // in the state need to be updated.
189- * self . current_block . borrow_mut ( ) = Some ( else_block) ;
190- self . block = Some ( else_block) ;
189+ self . switch_to_block ( else_block) ;
191190
192191 let zeros =
193192 match name {
@@ -200,8 +199,7 @@ impl<'a, 'gcc, 'tcx> IntrinsicCallMethods<'tcx> for Builder<'a, 'gcc, 'tcx> {
200199
201200 // NOTE: since jumps were added in a place rustc does not
202201 // expect, the current blocks in the state need to be updated.
203- * self . current_block . borrow_mut ( ) = Some ( after_block) ;
204- self . block = Some ( after_block) ;
202+ self . switch_to_block ( after_block) ;
205203
206204 result. to_rvalue ( )
207205 }
@@ -1003,8 +1001,7 @@ impl<'a, 'gcc, 'tcx> Builder<'a, 'gcc, 'tcx> {
10031001
10041002 // NOTE: since jumps were added in a place rustc does not
10051003 // expect, the current blocks in the state need to be updated.
1006- * self . current_block . borrow_mut ( ) = Some ( after_block) ;
1007- self . block = Some ( after_block) ;
1004+ self . switch_to_block ( after_block) ;
10081005
10091006 res. to_rvalue ( )
10101007 }
@@ -1074,8 +1071,7 @@ impl<'a, 'gcc, 'tcx> Builder<'a, 'gcc, 'tcx> {
10741071
10751072 // NOTE: since jumps were added in a place rustc does not
10761073 // expect, the current blocks in the state need to be updated.
1077- * self . current_block . borrow_mut ( ) = Some ( after_block) ;
1078- self . block = Some ( after_block) ;
1074+ self . switch_to_block ( after_block) ;
10791075
10801076 res. to_rvalue ( )
10811077 }
0 commit comments