Skip to content

Commit 67b8501

Browse files
committed
Elide a bunch of do-nothing take glue.
1 parent 381ba1d commit 67b8501

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/comp/middle/trans.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3053,7 +3053,7 @@ fn call_cmp_glue(&@block_ctxt cx,
30533053
}
30543054

30553055
fn take_ty(&@block_ctxt cx, ValueRef v, ty::t t) -> result {
3056-
if (!ty::type_is_scalar(cx.fcx.lcx.ccx.tcx, t)) {
3056+
if (ty::type_has_pointers(cx.fcx.lcx.ccx.tcx, t)) {
30573057
ret call_tydesc_glue(cx, v, t, false, abi::tydesc_field_take_glue);
30583058
}
30593059
ret res(cx, C_nil());

0 commit comments

Comments
 (0)