Skip to content

Commit b9225eb

Browse files
committed
---
yaml --- r: 1332 b: refs/heads/master c: f22dc4d h: refs/heads/master v: v3
1 parent 87b31a0 commit b9225eb

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 4b06dc574ba7d3ae50795cbe4f10d4be6e9c64a1
2+
refs/heads/master: f22dc4d581760d365392323a431f4787f31ae130

trunk/src/comp/middle/trans.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -983,14 +983,14 @@ fn get_tydesc(&@block_ctxt cx, @ty.t t) -> result {
983983
auto root = cx.fcx.ccx.tydescs.get(t);
984984

985985
auto tydescs = cx.build.Alloca(T_array(T_ptr(T_tydesc()), n_params));
986+
986987
auto i = 0;
988+
auto tdp = cx.build.GEP(tydescs, vec(C_int(0), C_int(i)));
989+
cx.build.Store(root, tdp);
990+
i += 1;
987991
for (ValueRef td in tys._1) {
988992
auto tdp = cx.build.GEP(tydescs, vec(C_int(0), C_int(i)));
989-
if (i == 0) {
990-
cx.build.Store(root, tdp);
991-
} else {
992-
cx.build.Store(td, tdp);
993-
}
993+
cx.build.Store(td, tdp);
994994
i += 1;
995995
}
996996

0 commit comments

Comments
 (0)