Skip to content

Commit 865ca74

Browse files
committed
rustc: Use shapes instead of codegen'd cmp glue
1 parent a73a0dd commit 865ca74

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/comp/middle/trans.rs

Lines changed: 1 addition & 7 deletions
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)