@@ -276,7 +276,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
276
276
let llslot = match op. val {
277
277
Immediate ( _) | Pair ( ..) => {
278
278
let scratch =
279
- PlaceRef :: alloca ( & mut bx, self . fn_ty . ret . layout , "ret" ) ;
279
+ PlaceRef :: alloca ( & mut bx, self . fn_ty . ret . layout ) ;
280
280
op. val . store ( & mut bx, scratch) ;
281
281
scratch. llval
282
282
}
@@ -767,7 +767,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
767
767
match ( arg, op. val ) {
768
768
( & mir:: Operand :: Copy ( _) , Ref ( _, None , _) ) |
769
769
( & mir:: Operand :: Constant ( _) , Ref ( _, None , _) ) => {
770
- let tmp = PlaceRef :: alloca ( & mut bx, op. layout , "const" ) ;
770
+ let tmp = PlaceRef :: alloca ( & mut bx, op. layout ) ;
771
771
op. val . store ( & mut bx, tmp) ;
772
772
op. val = Ref ( tmp. llval , None , tmp. align ) ;
773
773
}
@@ -925,7 +925,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
925
925
Immediate ( _) | Pair ( ..) => {
926
926
match arg. mode {
927
927
PassMode :: Indirect ( ..) | PassMode :: Cast ( _) => {
928
- let scratch = PlaceRef :: alloca ( bx, arg. layout , "arg" ) ;
928
+ let scratch = PlaceRef :: alloca ( bx, arg. layout ) ;
929
929
op. val . store ( bx, scratch) ;
930
930
( scratch. llval , scratch. align , true )
931
931
}
@@ -940,7 +940,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
940
940
// think that ATM (Rust 1.16) we only pass temporaries, but we shouldn't
941
941
// have scary latent bugs around.
942
942
943
- let scratch = PlaceRef :: alloca ( bx, arg. layout , "arg" ) ;
943
+ let scratch = PlaceRef :: alloca ( bx, arg. layout ) ;
944
944
base:: memcpy_ty ( bx, scratch. llval , scratch. align , llval, align,
945
945
op. layout , MemFlags :: empty ( ) ) ;
946
946
( scratch. llval , scratch. align , true )
@@ -1017,7 +1017,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
1017
1017
cx. tcx ( ) . mk_mut_ptr ( cx. tcx ( ) . types . u8 ) ,
1018
1018
cx. tcx ( ) . types . i32
1019
1019
] ) ) ;
1020
- let slot = PlaceRef :: alloca ( bx, layout, "personalityslot" ) ;
1020
+ let slot = PlaceRef :: alloca ( bx, layout) ;
1021
1021
self . personality_slot = Some ( slot) ;
1022
1022
slot
1023
1023
}
@@ -1116,15 +1116,15 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
1116
1116
return if fn_ret. is_indirect ( ) {
1117
1117
// Odd, but possible, case, we have an operand temporary,
1118
1118
// but the calling convention has an indirect return.
1119
- let tmp = PlaceRef :: alloca ( bx, fn_ret. layout , "tmp_ret" ) ;
1119
+ let tmp = PlaceRef :: alloca ( bx, fn_ret. layout ) ;
1120
1120
tmp. storage_live ( bx) ;
1121
1121
llargs. push ( tmp. llval ) ;
1122
1122
ReturnDest :: IndirectOperand ( tmp, index)
1123
1123
} else if is_intrinsic {
1124
1124
// Currently, intrinsics always need a location to store
1125
1125
// the result, so we create a temporary `alloca` for the
1126
1126
// result.
1127
- let tmp = PlaceRef :: alloca ( bx, fn_ret. layout , "tmp_ret" ) ;
1127
+ let tmp = PlaceRef :: alloca ( bx, fn_ret. layout ) ;
1128
1128
tmp. storage_live ( bx) ;
1129
1129
ReturnDest :: IndirectOperand ( tmp, index)
1130
1130
} else {
@@ -1174,7 +1174,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
1174
1174
LocalRef :: Operand ( None ) => {
1175
1175
let dst_layout = bx. layout_of ( self . monomorphized_place_ty ( & dst. as_ref ( ) ) ) ;
1176
1176
assert ! ( !dst_layout. ty. has_erasable_regions( ) ) ;
1177
- let place = PlaceRef :: alloca ( bx, dst_layout, "transmute_temp" ) ;
1177
+ let place = PlaceRef :: alloca ( bx, dst_layout) ;
1178
1178
place. storage_live ( bx) ;
1179
1179
self . codegen_transmute_into ( bx, src, place) ;
1180
1180
let op = bx. load_operand ( place) ;
@@ -1227,7 +1227,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
1227
1227
DirectOperand ( index) => {
1228
1228
// If there is a cast, we have to store and reload.
1229
1229
let op = if let PassMode :: Cast ( _) = ret_ty. mode {
1230
- let tmp = PlaceRef :: alloca ( bx, ret_ty. layout , "tmp_ret" ) ;
1230
+ let tmp = PlaceRef :: alloca ( bx, ret_ty. layout ) ;
1231
1231
tmp. storage_live ( bx) ;
1232
1232
bx. store_arg_ty ( & ret_ty, llval, tmp) ;
1233
1233
let op = bx. load_operand ( tmp) ;
0 commit comments