File tree Expand file tree Collapse file tree 3 files changed +3
-5
lines changed
branches/dist-snap/src/librustc/middle/trans Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ refs/heads/try: f64fdf524a434f0e5cd0bc91d09c144723f3c90d
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
8
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9
- refs/heads/dist-snap: 14b0abfd8204aa7673065800c4b8c2572eb5427f
9
+ refs/heads/dist-snap: 4b52d899fffd8e6ef01a5a05c1d513278a7823bd
10
10
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
11
11
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
12
12
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ pub fn type_is_immediate(ccx: &CrateContext, ty: ty::t) -> bool {
64
64
let tcx = ccx. tcx ;
65
65
let simple = ty:: type_is_scalar ( ty) || ty:: type_is_boxed ( ty) ||
66
66
ty:: type_is_unique ( ty) || ty:: type_is_region_ptr ( ty) ||
67
- type_is_newtype_immediate ( ccx, ty) ||
67
+ type_is_newtype_immediate ( ccx, ty) || ty :: type_is_bot ( ty ) ||
68
68
ty:: type_is_simd ( tcx, ty) ;
69
69
if simple {
70
70
return true ;
@@ -75,7 +75,7 @@ pub fn type_is_immediate(ccx: &CrateContext, ty: ty::t) -> bool {
75
75
let llty = sizing_type_of ( ccx, ty) ;
76
76
llsize_of_alloc ( ccx, llty) <= llsize_of_alloc ( ccx, ccx. int_type )
77
77
}
78
- _ => false
78
+ _ => type_is_voidish ( ccx , ty )
79
79
}
80
80
}
81
81
Original file line number Diff line number Diff line change @@ -553,7 +553,6 @@ pub fn get_base_and_byte_len(bcx: &Block,
553
553
554
554
match vstore {
555
555
ty:: vstore_fixed( n) => {
556
- assert ! ( !type_is_immediate( bcx. ccx( ) , vt. vec_ty) ) ;
557
556
let base = GEPi ( bcx, llval, [ 0 u, 0 u] ) ;
558
557
let len = Mul ( bcx, C_uint ( ccx, n) , vt. llunit_size ) ;
559
558
( base, len)
@@ -596,7 +595,6 @@ pub fn get_base_and_len(bcx: &Block,
596
595
597
596
match vstore {
598
597
ty:: vstore_fixed( n) => {
599
- assert ! ( !type_is_immediate( bcx. ccx( ) , vt. vec_ty) ) ;
600
598
let base = GEPi ( bcx, llval, [ 0 u, 0 u] ) ;
601
599
( base, C_uint ( ccx, n) )
602
600
}
You can’t perform that action at this time.
0 commit comments