Skip to content

Commit 117aff8

Browse files
committed
rustc: Intern types
1 parent 3b047ba commit 117aff8

File tree

3 files changed

+73
-331
lines changed

3 files changed

+73
-331
lines changed

src/comp/middle/trans.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2854,12 +2854,12 @@ fn target_type(@crate_ctxt cx, @ty.t t) -> @ty.t {
28542854
case (ty.ty_int) {
28552855
auto struct_ty = ty.mk_mach(cx.tystore,
28562856
cx.sess.get_targ_cfg().int_type);
2857-
ret ty.copy_cname(struct_ty, t);
2857+
ret ty.copy_cname(cx.tystore, struct_ty, t);
28582858
}
28592859
case (ty.ty_uint) {
28602860
auto struct_ty = ty.mk_mach(cx.tystore,
28612861
cx.sess.get_targ_cfg().uint_type);
2862-
ret ty.copy_cname(struct_ty, t);
2862+
ret ty.copy_cname(cx.tystore, struct_ty, t);
28632863
}
28642864
case (_) { /* fall through */ }
28652865
}

0 commit comments

Comments
 (0)