@@ -1185,16 +1185,12 @@ fn make_drop_glue(@block_ctxt cx, ValueRef v, @ty.t t) -> result {
1185
1185
vec( C_int ( 0 ) ,
1186
1186
C_int ( abi. box_rc_field_body) ) ) ;
1187
1187
1188
- auto fields =
1189
- cx. build. GEP ( body,
1190
- vec( C_int ( 0 ) ,
1191
- C_int ( abi. obj_body_elt_fields) ) ) ;
1192
1188
auto tydescptr =
1193
1189
cx. build. GEP ( body,
1194
1190
vec( C_int ( 0 ) ,
1195
1191
C_int ( abi. obj_body_elt_tydesc) ) ) ;
1196
1192
1197
- call_tydesc_glue_full( cx, fields , cx. build. Load ( tydescptr) ,
1193
+ call_tydesc_glue_full( cx, body , cx. build. Load ( tydescptr) ,
1198
1194
abi. tydesc_field_drop_glue_off) ;
1199
1195
1200
1196
// Then free the body.
@@ -1223,17 +1219,12 @@ fn make_drop_glue(@block_ctxt cx, ValueRef v, @ty.t t) -> result {
1223
1219
vec( C_int ( 0 ) ,
1224
1220
C_int ( abi. box_rc_field_body) ) ) ;
1225
1221
1226
- auto bindings =
1227
- cx. build. GEP ( body,
1228
- vec( C_int ( 0 ) ,
1229
- C_int ( abi. closure_elt_bindings) ) ) ;
1230
-
1231
1222
auto tydescptr =
1232
1223
cx. build. GEP ( body,
1233
1224
vec( C_int ( 0 ) ,
1234
1225
C_int ( abi. closure_elt_tydesc) ) ) ;
1235
1226
1236
- call_tydesc_glue_full( cx, bindings , cx. build. Load ( tydescptr) ,
1227
+ call_tydesc_glue_full( cx, body , cx. build. Load ( tydescptr) ,
1237
1228
abi. tydesc_field_drop_glue_off) ;
1238
1229
1239
1230
@@ -3659,9 +3650,9 @@ fn trans_obj(@crate_ctxt cx, &ast._obj ob, ast.def_id oid,
3659
3650
vec( 0 , abi. obj_body_elt_tydesc) ) ;
3660
3651
bcx = body_tydesc. bcx;
3661
3652
3662
- auto fields_tydesc = get_tydesc( bcx, fields_ty ) ;
3663
- bcx = fields_tydesc . bcx;
3664
- bcx. build. Store ( fields_tydesc . val, body_tydesc. val) ;
3653
+ auto body_td = get_tydesc( bcx, body_ty ) ;
3654
+ bcx = body_td . bcx;
3655
+ bcx. build. Store ( body_td . val, body_tydesc. val) ;
3665
3656
3666
3657
// Copy args into body fields.
3667
3658
auto body_fields =
0 commit comments