restore old buggy behavior where n_obj_params is always 0 for fns
This commit is contained in:
parent
1e3259e119
commit
aa3d58c8c0
1 changed files with 9 additions and 1 deletions
|
|
@ -190,7 +190,15 @@ fn store_environment(
|
|||
ty::closure_shared. | ty::closure_send. {
|
||||
let bound_tydesc = GEPi(bcx, closure, [0, abi::closure_elt_tydesc]);
|
||||
let ti = none;
|
||||
let tps = tps_fn(vec::len(lltydescs));
|
||||
|
||||
// NDM I believe this is the correct value,
|
||||
// but using it exposes bugs and limitations
|
||||
// in the shape code. Therefore, I am using
|
||||
// tps_normal, which is what we used before.
|
||||
//
|
||||
// let tps = tps_fn(vec::len(lltydescs));
|
||||
|
||||
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_drop_glue, ti);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue