We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b06dc5 commit f22dc4dCopy full SHA for f22dc4d
src/comp/middle/trans.rs
@@ -983,14 +983,14 @@ fn get_tydesc(&@block_ctxt cx, @ty.t t) -> result {
983
auto root = cx.fcx.ccx.tydescs.get(t);
984
985
auto tydescs = cx.build.Alloca(T_array(T_ptr(T_tydesc()), n_params));
986
+
987
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;
991
for (ValueRef td in tys._1) {
992
auto tdp = cx.build.GEP(tydescs, vec(C_int(0), C_int(i)));
- if (i == 0) {
- cx.build.Store(root, tdp);
- } else {
- cx.build.Store(td, tdp);
993
- }
+ cx.build.Store(td, tdp);
994
i += 1;
995
}
996
0 commit comments