Skip to content

Commit ea3a303

Browse files
committed
---
yaml --- r: 47533 b: refs/heads/try c: 68b3f0d h: refs/heads/master i: 47531: 2379302 v: v3
1 parent 13c40bd commit ea3a303

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: 3bbcac322669cff3abde5be937cc4ec3860f3985
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: a6d9689399d091c3265f00434a69c551a61c28dc
5-
refs/heads/try: ca450e345f57f277c1cb0406b8366280c8d41f48
5+
refs/heads/try: 68b3f0d8a419c94eaead13517cd87aaf5fc74b86
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/src/librustc/middle/trans/base.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -689,10 +689,11 @@ pub fn iter_structural_ty(cx: block, av: ValueRef, t: ty::t,
689689
cx = tvec::iter_vec_raw(cx, base, t, len, f);
690690
}
691691
ty::ty_tup(args) => {
692-
for vec::eachi(args) |i, arg| {
693-
let llfld_a = GEPi(cx, av, [0u, i]);
694-
cx = f(cx, llfld_a, *arg);
695-
}
692+
let repr = adt::represent_type(cx.ccx(), t);
693+
for vec::eachi(args) |i, arg| {
694+
let llfld_a = adt::trans_GEP(cx, &repr, av, 0, i);
695+
cx = f(cx, llfld_a, *arg);
696+
}
696697
}
697698
ty::ty_enum(tid, ref substs) => {
698699
let variants = ty::enum_variants(cx.tcx(), tid);

0 commit comments

Comments
 (0)