emit the take glue for closure tydescs

This commit is contained in:
Niko Matsakis 2012-01-05 09:27:45 -08:00
parent 9f84f88276
commit 2074e06278

View File

@ -219,6 +219,7 @@ fn maybe_clone_tydesc(bcx: @block_ctxt,
let tps = tps_normal;
let {result:closure_td, _} =
trans::get_tydesc(bcx, closure_ty, true, tps, ti);
trans::lazily_emit_tydesc_glue(bcx, abi::tydesc_field_take_glue, ti);
trans::lazily_emit_tydesc_glue(bcx, abi::tydesc_field_drop_glue, ti);
trans::lazily_emit_tydesc_glue(bcx, abi::tydesc_field_free_glue, ti);
bcx = closure_td.bcx;