@@ -141,7 +141,7 @@ impl<'a, 'gcc, 'tcx> Builder<'a, 'gcc, 'tcx> {
141
141
) -> RValue < ' gcc > {
142
142
let size = get_maybe_pointer_size ( src) ;
143
143
let compare_exchange =
144
- self . context . get_builtin_function ( & format ! ( "__atomic_compare_exchange_{}" , size) ) ;
144
+ self . context . get_builtin_function ( format ! ( "__atomic_compare_exchange_{}" , size) ) ;
145
145
let order = self . context . new_rvalue_from_int ( self . i32_type , order. to_gcc ( ) ) ;
146
146
let failure_order = self . context . new_rvalue_from_int ( self . i32_type , failure_order. to_gcc ( ) ) ;
147
147
let weak = self . context . new_rvalue_from_int ( self . bool_type , weak as i32 ) ;
@@ -328,7 +328,7 @@ impl<'a, 'gcc, 'tcx> Builder<'a, 'gcc, 'tcx> {
328
328
let result = current_func. new_local (
329
329
self . location ,
330
330
return_type,
331
- & format ! ( "returnValue{}" , self . next_value_counter( ) ) ,
331
+ format ! ( "returnValue{}" , self . next_value_counter( ) ) ,
332
332
) ;
333
333
self . block . add_assignment (
334
334
self . location ,
@@ -396,7 +396,7 @@ impl<'a, 'gcc, 'tcx> Builder<'a, 'gcc, 'tcx> {
396
396
let result = current_func. new_local (
397
397
self . location ,
398
398
return_value. get_type ( ) ,
399
- & format ! ( "ptrReturnValue{}" , self . next_value_counter( ) ) ,
399
+ format ! ( "ptrReturnValue{}" , self . next_value_counter( ) ) ,
400
400
) ;
401
401
self . block . add_assignment ( self . location , result, return_value) ;
402
402
result. to_rvalue ( )
@@ -438,7 +438,7 @@ impl<'a, 'gcc, 'tcx> Builder<'a, 'gcc, 'tcx> {
438
438
let result = current_func. new_local (
439
439
self . location ,
440
440
return_type,
441
- & format ! ( "overflowReturnValue{}" , self . next_value_counter( ) ) ,
441
+ format ! ( "overflowReturnValue{}" , self . next_value_counter( ) ) ,
442
442
) ;
443
443
self . block . add_assignment (
444
444
self . location ,
@@ -923,7 +923,7 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> {
923
923
let ty = self . cx . type_array ( self . cx . type_i8 ( ) , size. bytes ( ) ) . get_aligned ( align. bytes ( ) ) ;
924
924
// TODO(antoyo): It might be better to return a LValue, but fixing the rustc API is non-trivial.
925
925
self . current_func ( )
926
- . new_local ( self . location , ty, & format ! ( "stack_var_{}" , self . next_value_counter( ) ) )
926
+ . new_local ( self . location , ty, format ! ( "stack_var_{}" , self . next_value_counter( ) ) )
927
927
. get_address ( self . location )
928
928
}
929
929
@@ -949,7 +949,7 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> {
949
949
let loaded_value = function. new_local (
950
950
self . location ,
951
951
aligned_type,
952
- & format ! ( "loadedValue{}" , self . next_value_counter( ) ) ,
952
+ format ! ( "loadedValue{}" , self . next_value_counter( ) ) ,
953
953
) ;
954
954
block. add_assignment ( self . location , loaded_value, deref) ;
955
955
loaded_value. to_rvalue ( )
@@ -970,7 +970,7 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> {
970
970
// TODO(antoyo): use ty.
971
971
// TODO(antoyo): handle alignment.
972
972
let atomic_load =
973
- self . context . get_builtin_function ( & format ! ( "__atomic_load_{}" , size. bytes( ) ) ) ;
973
+ self . context . get_builtin_function ( format ! ( "__atomic_load_{}" , size. bytes( ) ) ) ;
974
974
let ordering = self . context . new_rvalue_from_int ( self . i32_type , order. to_gcc ( ) ) ;
975
975
976
976
let volatile_const_void_ptr_type =
@@ -1126,7 +1126,7 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> {
1126
1126
) {
1127
1127
// TODO(antoyo): handle alignment.
1128
1128
let atomic_store =
1129
- self . context . get_builtin_function ( & format ! ( "__atomic_store_{}" , size. bytes( ) ) ) ;
1129
+ self . context . get_builtin_function ( format ! ( "__atomic_store_{}" , size. bytes( ) ) ) ;
1130
1130
let ordering = self . context . new_rvalue_from_int ( self . i32_type , order. to_gcc ( ) ) ;
1131
1131
let volatile_const_void_ptr_type =
1132
1132
self . context . new_type :: < ( ) > ( ) . make_volatile ( ) . make_pointer ( ) ;
0 commit comments