diff options
| author | Graydon Hoare <[email protected]> | 2011-02-02 17:49:15 -0800 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2011-02-02 17:49:15 -0800 |
| commit | ce17fe2a90737425eed9305cd24e4c6f71b78dbd (patch) | |
| tree | 0a10f265e811214550356b1a1a485df7c365f973 /src/comp | |
| parent | Hack to work around apparent LLVM bug? (diff) | |
| download | rust-ce17fe2a90737425eed9305cd24e4c6f71b78dbd.tar.xz rust-ce17fe2a90737425eed9305cd24e4c6f71b78dbd.zip | |
Attempt to put out burning tinderbox.
Diffstat (limited to 'src/comp')
| -rw-r--r-- | src/comp/middle/trans.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/comp/middle/trans.rs b/src/comp/middle/trans.rs index 3db5be5f..b1c84ace 100644 --- a/src/comp/middle/trans.rs +++ b/src/comp/middle/trans.rs @@ -1218,13 +1218,17 @@ fn make_drop_glue(@block_ctxt cx, ValueRef v, @ty.t t) -> 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); |