Skip to content

Commit 7af5a96

Browse files
committed
---
yaml --- r: 1337 b: refs/heads/master c: b379956 h: refs/heads/master i: 1335: cd8e4e0 v: v3
1 parent 8e140a9 commit 7af5a96

File tree

2 files changed

+6
-15
lines changed

2 files changed

+6
-15
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: c61ff989850f2f77fad9fd1f032632d559e8edab
2+
refs/heads/master: b37995664b0149ee92269a3e11f7f6228fe48cc7

trunk/src/comp/middle/trans.rs

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1185,16 +1185,12 @@ fn make_drop_glue(@block_ctxt cx, ValueRef v, @ty.t t) -> result {
11851185
vec(C_int(0),
11861186
C_int(abi.box_rc_field_body)));
11871187

1188-
auto fields =
1189-
cx.build.GEP(body,
1190-
vec(C_int(0),
1191-
C_int(abi.obj_body_elt_fields)));
11921188
auto tydescptr =
11931189
cx.build.GEP(body,
11941190
vec(C_int(0),
11951191
C_int(abi.obj_body_elt_tydesc)));
11961192

1197-
call_tydesc_glue_full(cx, fields, cx.build.Load(tydescptr),
1193+
call_tydesc_glue_full(cx, body, cx.build.Load(tydescptr),
11981194
abi.tydesc_field_drop_glue_off);
11991195

12001196
// Then free the body.
@@ -1223,17 +1219,12 @@ fn make_drop_glue(@block_ctxt cx, ValueRef v, @ty.t t) -> result {
12231219
vec(C_int(0),
12241220
C_int(abi.box_rc_field_body)));
12251221

1226-
auto bindings =
1227-
cx.build.GEP(body,
1228-
vec(C_int(0),
1229-
C_int(abi.closure_elt_bindings)));
1230-
12311222
auto tydescptr =
12321223
cx.build.GEP(body,
12331224
vec(C_int(0),
12341225
C_int(abi.closure_elt_tydesc)));
12351226

1236-
call_tydesc_glue_full(cx, bindings, cx.build.Load(tydescptr),
1227+
call_tydesc_glue_full(cx, body, cx.build.Load(tydescptr),
12371228
abi.tydesc_field_drop_glue_off);
12381229

12391230

@@ -3659,9 +3650,9 @@ fn trans_obj(@crate_ctxt cx, &ast._obj ob, ast.def_id oid,
36593650
vec(0, abi.obj_body_elt_tydesc));
36603651
bcx = body_tydesc.bcx;
36613652

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);
36653656

36663657
// Copy args into body fields.
36673658
auto body_fields =

0 commit comments

Comments
 (0)