@@ -155,14 +155,11 @@ impl<'a, 'gcc, 'tcx> Builder<'a, 'gcc, 'tcx> {
155155 // NOTE: not sure why, but we have the wrong type here.
156156 let int_type = compare_exchange. get_param ( 2 ) . to_rvalue ( ) . get_type ( ) ;
157157 let src = self . context . new_bitcast ( self . location , src, int_type) ;
158- self . context . new_call ( self . location , compare_exchange, & [
159- dst,
160- expected,
161- src,
162- weak,
163- order,
164- failure_order,
165- ] )
158+ self . context . new_call (
159+ self . location ,
160+ compare_exchange,
161+ & [ dst, expected, src, weak, order, failure_order] ,
162+ )
166163 }
167164
168165 pub fn assign ( & self , lvalue : LValue < ' gcc > , value : RValue < ' gcc > ) {
@@ -1076,9 +1073,11 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> {
10761073 let align = dest. val . align . restrict_for_offset ( dest. layout . field ( self . cx ( ) , 0 ) . size ) ;
10771074 cg_elem. val . store ( self , PlaceRef :: new_sized_aligned ( current_val, cg_elem. layout , align) ) ;
10781075
1079- let next = self . inbounds_gep ( self . backend_type ( cg_elem. layout ) , current. to_rvalue ( ) , & [
1080- self . const_usize ( 1 ) ,
1081- ] ) ;
1076+ let next = self . inbounds_gep (
1077+ self . backend_type ( cg_elem. layout ) ,
1078+ current. to_rvalue ( ) ,
1079+ & [ self . const_usize ( 1 ) ] ,
1080+ ) ;
10821081 self . llbb ( ) . add_assignment ( self . location , current, next) ;
10831082 self . br ( header_bb) ;
10841083
0 commit comments