@@ -755,11 +755,11 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> {
755755 OperandRef { val, layout : place. layout }
756756 }
757757
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 > > ) {
759759 let zero = self . const_usize ( 0 ) ;
760760 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 ;
763763
764764 let header_bb = self . append_sibling_block ( "repeat_loop_header" ) ;
765765 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> {
778778
779779 self . switch_to_block ( body_bb) ;
780780 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) ) ;
782782
783783 let next = self . inbounds_gep ( self . backend_type ( cg_elem. layout ) , current. to_rvalue ( ) , & [ self . const_usize ( 1 ) ] ) ;
784784 self . llbb ( ) . add_assignment ( None , current, next) ;
785785 self . br ( header_bb) ;
786786
787787 self . switch_to_block ( next_bb) ;
788- self
789788 }
790789
791790 fn range_metadata ( & mut self , _load : RValue < ' gcc > , _range : WrappingRange ) {
0 commit comments