@@ -755,11 +755,11 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> {
755
755
OperandRef { val, layout : place. layout }
756
756
}
757
757
758
- fn write_operand_repeatedly ( mut self , cg_elem : OperandRef < ' tcx , RValue < ' gcc > > , count : u64 , dest : PlaceRef < ' tcx , RValue < ' gcc > > ) -> Self {
758
+ fn write_operand_repeatedly ( & mut self , cg_elem : OperandRef < ' tcx , RValue < ' gcc > > , count : u64 , dest : PlaceRef < ' tcx , RValue < ' gcc > > ) {
759
759
let zero = self . const_usize ( 0 ) ;
760
760
let count = self . const_usize ( count) ;
761
- let start = dest. project_index ( & mut self , zero) . llval ;
762
- let end = dest. project_index ( & mut self , count) . llval ;
761
+ let start = dest. project_index ( self , zero) . llval ;
762
+ let end = dest. project_index ( self , count) . llval ;
763
763
764
764
let header_bb = self . append_sibling_block ( "repeat_loop_header" ) ;
765
765
let body_bb = self . append_sibling_block ( "repeat_loop_body" ) ;
@@ -778,14 +778,13 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> {
778
778
779
779
self . switch_to_block ( body_bb) ;
780
780
let align = dest. align . restrict_for_offset ( dest. layout . field ( self . cx ( ) , 0 ) . size ) ;
781
- cg_elem. val . store ( & mut self , PlaceRef :: new_sized_aligned ( current_val, cg_elem. layout , align) ) ;
781
+ cg_elem. val . store ( self , PlaceRef :: new_sized_aligned ( current_val, cg_elem. layout , align) ) ;
782
782
783
783
let next = self . inbounds_gep ( self . backend_type ( cg_elem. layout ) , current. to_rvalue ( ) , & [ self . const_usize ( 1 ) ] ) ;
784
784
self . llbb ( ) . add_assignment ( None , current, next) ;
785
785
self . br ( header_bb) ;
786
786
787
787
self . switch_to_block ( next_bb) ;
788
- self
789
788
}
790
789
791
790
fn range_metadata ( & mut self , _load : RValue < ' gcc > , _range : WrappingRange ) {
0 commit comments