From ce17fe2a90737425eed9305cd24e4c6f71b78dbd Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Wed, 2 Feb 2011 17:49:15 -0800 Subject: [PATCH] Attempt to put out burning tinderbox. --- src/comp/middle/trans.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/comp/middle/trans.rs b/src/comp/middle/trans.rs index 3db5be5f55a..b1c84acebc3 100644 --- a/src/comp/middle/trans.rs +++ b/src/comp/middle/trans.rs @@ -1218,13 +1218,17 @@ fn hit_zero(@block_ctxt cx, ValueRef v) -> result { cx.build.GEP(v, vec(C_int(0), C_int(abi.box_rc_field_body))); + auto bindings = + cx.build.GEP(body, + vec(C_int(0), + C_int(abi.closure_elt_bindings))); auto tydescptr = cx.build.GEP(body, vec(C_int(0), C_int(abi.closure_elt_tydesc))); - call_tydesc_glue_full(cx, body, cx.build.Load(tydescptr), + call_tydesc_glue_full(cx, bindings, cx.build.Load(tydescptr), abi.tydesc_field_drop_glue_off); -- GitLab