File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 4b06dc574ba7d3ae50795cbe4f10d4be6e9c64a1
2
+ refs/heads/master: f22dc4d581760d365392323a431f4787f31ae130
Original file line number Diff line number Diff line change @@ -983,14 +983,14 @@ fn get_tydesc(&@block_ctxt cx, @ty.t t) -> result {
983
983
auto root = cx. fcx . ccx . tydescs . get ( t) ;
984
984
985
985
auto tydescs = cx. build . Alloca ( T_array ( T_ptr ( T_tydesc ( ) ) , n_params) ) ;
986
+
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 ;
987
991
for ( ValueRef td in tys. _1) {
988
992
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) ;
994
994
i += 1 ;
995
995
}
996
996
You can’t perform that action at this time.
0 commit comments