Skip to content

Commit 2266093

Browse files
committed
---
yaml --- r: 4508 b: refs/heads/master c: 865ca74 h: refs/heads/master v: v3
1 parent 41bc3aa commit 2266093

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

[refs]

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: a73a0dd74eed79dbeb861faf69c35994589bc3b2
2+
refs/heads/master: 865ca749dc93e70a10d2d00bb709aaccdc34a2ba

trunk/src/comp/middle/trans.rs

+1-7
Original file line numberDiff line numberDiff line change
@@ -2240,13 +2240,7 @@ fn lazily_emit_tydesc_glue(cx: &@block_ctxt, field: int,
22402240
none. {
22412241
log #fmt("+++ lazily_emit_tydesc_glue CMP %s",
22422242
ty_to_str(bcx_tcx(cx), ti.ty));
2243-
let lcx = cx.fcx.lcx;
2244-
let glue_fn =
2245-
declare_generic_glue(lcx, ti.ty, T_cmp_glue_fn(*lcx.ccx),
2246-
"cmp");
2247-
ti.cmp_glue = some[ValueRef](glue_fn);
2248-
make_generic_glue(lcx, cx.sp, ti.ty, glue_fn, mgghf_cmp,
2249-
ti.ty_params, "cmp");
2243+
ti.cmp_glue = some(bcx_ccx(cx).upcalls.cmp_type);
22502244
log #fmt("--- lazily_emit_tydesc_glue CMP %s",
22512245
ty_to_str(bcx_tcx(cx), ti.ty));
22522246
}

0 commit comments

Comments
 (0)