Skip to content

Commit cc8ea38

Browse files
committed
---
yaml --- r: 1339 b: refs/heads/master c: ce17fe2 h: refs/heads/master i: 1337: 7af5a96 1335: cd8e4e0 v: v3
1 parent 6e16105 commit cc8ea38

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
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: c863427b64f51fd55cc6191ed08cbfb88034d05b
2+
refs/heads/master: ce17fe2a90737425eed9305cd24e4c6f71b78dbd

trunk/src/comp/middle/trans.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1218,13 +1218,17 @@ fn make_drop_glue(@block_ctxt cx, ValueRef v, @ty.t t) -> result {
12181218
cx.build.GEP(v,
12191219
vec(C_int(0),
12201220
C_int(abi.box_rc_field_body)));
1221+
auto bindings =
1222+
cx.build.GEP(body,
1223+
vec(C_int(0),
1224+
C_int(abi.closure_elt_bindings)));
12211225

12221226
auto tydescptr =
12231227
cx.build.GEP(body,
12241228
vec(C_int(0),
12251229
C_int(abi.closure_elt_tydesc)));
12261230

1227-
call_tydesc_glue_full(cx, body, cx.build.Load(tydescptr),
1231+
call_tydesc_glue_full(cx, bindings, cx.build.Load(tydescptr),
12281232
abi.tydesc_field_drop_glue_off);
12291233

12301234

0 commit comments

Comments
 (0)