@@ -12,6 +12,7 @@ use rustc_middle::ty::layout::{HasTyCtxt, LayoutOf, TyAndLayout};
12
12
use rustc_middle:: ty:: { self , Ty } ;
13
13
use rustc_target:: abi:: { Align , FieldsShape , Int , Pointer , Size , TagEncoding } ;
14
14
use rustc_target:: abi:: { VariantIdx , Variants } ;
15
+ use tracing:: { debug, instrument} ;
15
16
16
17
/// The location and extra runtime properties of the place.
17
18
///
@@ -159,9 +160,9 @@ impl<'a, 'tcx, V: CodegenObject> PlaceRef<'tcx, V> {
159
160
bx. inbounds_ptradd ( self . val . llval , bx. const_usize ( offset. bytes ( ) ) )
160
161
} ;
161
162
let val = PlaceValue {
162
- llval,
163
+ llval,
163
164
llextra : if bx. cx ( ) . type_has_metadata ( field. ty ) { self . val . llextra } else { None } ,
164
- align : effective_field_align,
165
+ align : effective_field_align,
165
166
} ;
166
167
val. with_type ( field)
167
168
} ;
@@ -408,9 +409,9 @@ impl<'a, 'tcx, V: CodegenObject> PlaceRef<'tcx, V> {
408
409
} ;
409
410
410
411
let llval = bx. inbounds_gep (
411
- bx. cx ( ) . backend_type ( self . layout ) ,
412
- self . val . llval ,
413
- & [ bx. cx ( ) . const_usize ( 0 ) , llindex] ,
412
+ bx. cx ( ) . backend_type ( self . layout ) ,
413
+ self . val . llval ,
414
+ & [ bx. cx ( ) . const_usize ( 0 ) , llindex] ,
414
415
) ;
415
416
let align = self . val . align . restrict_for_offset ( offset) ;
416
417
PlaceValue :: new_sized ( llval, align) . with_type ( layout)
0 commit comments