@@ -109,7 +109,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
109
109
pub ( crate ) fn codegen_stmt_debuginfo ( & mut self , bx : & mut Bx , debuginfo : & StmtDebugInfo < ' tcx > ) {
110
110
match debuginfo {
111
111
StmtDebugInfo :: AssignRef ( dest, place) => {
112
- let place_ref = match self . locals [ place. local ] {
112
+ let local_ref = match self . locals [ place. local ] {
113
113
LocalRef :: Place ( place_ref) | LocalRef :: UnsizedPlace ( place_ref) => {
114
114
Some ( place_ref)
115
115
}
@@ -130,18 +130,18 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
130
130
// Only pointers can calculate addresses.
131
131
bx. type_kind ( bx. val_ty ( place_ref. val . llval ) ) == TypeKind :: Pointer
132
132
} ) ;
133
- let assign_ref = match ( place_ref , place. is_indirect_first_projection ( ) ) {
134
- ( Some ( place_ref ) , false ) => {
135
- Some ( ( place_ref . val , place_ref . layout , place. projection . as_slice ( ) ) )
133
+ let assign_ref = match ( local_ref , place. is_indirect_first_projection ( ) ) {
134
+ ( Some ( local_ref ) , false ) => {
135
+ Some ( ( local_ref . val , local_ref . layout , place. projection . as_slice ( ) ) )
136
136
}
137
- ( Some ( place_ref ) , true ) => {
138
- let projected_ty = place_ref
137
+ ( Some ( local_ref ) , true ) => {
138
+ let projected_ty = local_ref
139
139
. layout
140
140
. ty
141
141
. builtin_deref ( true )
142
- . unwrap_or_else ( || bug ! ( "deref of non-pointer {:?}" , place_ref ) ) ;
142
+ . unwrap_or_else ( || bug ! ( "deref of non-pointer {:?}" , local_ref ) ) ;
143
143
let layout = bx. cx ( ) . layout_of ( projected_ty) ;
144
- Some ( ( place_ref . val , layout, & place. projection [ 1 ..] ) )
144
+ Some ( ( local_ref . val , layout, & place. projection [ 1 ..] ) )
145
145
}
146
146
_ => None ,
147
147
} ;
0 commit comments