mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-02 06:28:20 +03:00
emit the take glue for closure tydescs
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user