@@ -974,7 +974,7 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> {
974
974
& mut self ,
975
975
place : PlaceRef < ' tcx , RValue < ' gcc > > ,
976
976
) -> OperandRef < ' tcx , RValue < ' gcc > > {
977
- assert_eq ! ( place. llextra. is_some( ) , place. layout. is_unsized( ) ) ;
977
+ assert_eq ! ( place. val . llextra. is_some( ) , place. layout. is_unsized( ) ) ;
978
978
979
979
if place. layout . is_zst ( ) {
980
980
return OperandRef :: zero_sized ( place. layout ) ;
@@ -999,10 +999,10 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> {
999
999
}
1000
1000
}
1001
1001
1002
- let val = if let Some ( llextra) = place. llextra {
1003
- OperandValue :: Ref ( place. llval , Some ( llextra) , place. align )
1002
+ let val = if let Some ( llextra) = place. val . llextra {
1003
+ OperandValue :: Ref ( place. val . llval , Some ( llextra) , place. val . align )
1004
1004
} else if place. layout . is_gcc_immediate ( ) {
1005
- let load = self . load ( place. layout . gcc_type ( self ) , place. llval , place. align ) ;
1005
+ let load = self . load ( place. layout . gcc_type ( self ) , place. val . llval , place. val . align ) ;
1006
1006
if let abi:: Abi :: Scalar ( ref scalar) = place. layout . abi {
1007
1007
scalar_load_metadata ( self , load, scalar) ;
1008
1008
}
@@ -1012,9 +1012,9 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> {
1012
1012
1013
1013
let mut load = |i, scalar : & abi:: Scalar , align| {
1014
1014
let llptr = if i == 0 {
1015
- place. llval
1015
+ place. val . llval
1016
1016
} else {
1017
- self . inbounds_ptradd ( place. llval , self . const_usize ( b_offset. bytes ( ) ) )
1017
+ self . inbounds_ptradd ( place. val . llval , self . const_usize ( b_offset. bytes ( ) ) )
1018
1018
} ;
1019
1019
let llty = place. layout . scalar_pair_element_gcc_type ( self , i) ;
1020
1020
let load = self . load ( llty, llptr, align) ;
@@ -1027,11 +1027,11 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> {
1027
1027
} ;
1028
1028
1029
1029
OperandValue :: Pair (
1030
- load ( 0 , a, place. align ) ,
1031
- load ( 1 , b, place. align . restrict_for_offset ( b_offset) ) ,
1030
+ load ( 0 , a, place. val . align ) ,
1031
+ load ( 1 , b, place. val . align . restrict_for_offset ( b_offset) ) ,
1032
1032
)
1033
1033
} else {
1034
- OperandValue :: Ref ( place. llval , None , place. align )
1034
+ OperandValue :: Ref ( place. val . llval , None , place. val . align )
1035
1035
} ;
1036
1036
1037
1037
OperandRef { val, layout : place. layout }
@@ -1045,8 +1045,8 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> {
1045
1045
) {
1046
1046
let zero = self . const_usize ( 0 ) ;
1047
1047
let count = self . const_usize ( count) ;
1048
- let start = dest. project_index ( self , zero) . llval ;
1049
- let end = dest. project_index ( self , count) . llval ;
1048
+ let start = dest. project_index ( self , zero) . val . llval ;
1049
+ let end = dest. project_index ( self , count) . val . llval ;
1050
1050
1051
1051
let header_bb = self . append_sibling_block ( "repeat_loop_header" ) ;
1052
1052
let body_bb = self . append_sibling_block ( "repeat_loop_body" ) ;
@@ -1064,7 +1064,7 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> {
1064
1064
self . cond_br ( keep_going, body_bb, next_bb) ;
1065
1065
1066
1066
self . switch_to_block ( body_bb) ;
1067
- let align = dest. align . restrict_for_offset ( dest. layout . field ( self . cx ( ) , 0 ) . size ) ;
1067
+ let align = dest. val . align . restrict_for_offset ( dest. layout . field ( self . cx ( ) , 0 ) . size ) ;
1068
1068
cg_elem. val . store ( self , PlaceRef :: new_sized_aligned ( current_val, cg_elem. layout , align) ) ;
1069
1069
1070
1070
let next = self . inbounds_gep (
0 commit comments