Skip to content

Commit ab851fe

Browse files
committed
---
yaml --- r: 6717 b: refs/heads/master c: aa3d58c h: refs/heads/master i: 6715: 777a1f2 v: v3
1 parent 555ff7a commit ab851fe

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 1e3259e119b6370267415b9e07f3ea80869f839d
2+
refs/heads/master: aa3d58c8c0a2e52b2893328a8d1940e5fbd41303

trunk/src/comp/middle/trans_closure.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,15 @@ fn store_environment(
190190
ty::closure_shared. | ty::closure_send. {
191191
let bound_tydesc = GEPi(bcx, closure, [0, abi::closure_elt_tydesc]);
192192
let ti = none;
193-
let tps = tps_fn(vec::len(lltydescs));
193+
194+
// NDM I believe this is the correct value,
195+
// but using it exposes bugs and limitations
196+
// in the shape code. Therefore, I am using
197+
// tps_normal, which is what we used before.
198+
//
199+
// let tps = tps_fn(vec::len(lltydescs));
200+
201+
let tps = tps_normal;
194202
let {result:closure_td, _} =
195203
trans::get_tydesc(bcx, closure_ty, true, tps, ti);
196204
trans::lazily_emit_tydesc_glue(bcx, abi::tydesc_field_drop_glue, ti);

0 commit comments

Comments
 (0)