Skip to content

Commit 8e63254

Browse files
committed
---
yaml --- r: 97765 b: refs/heads/snap-stage3 c: 4b52d89 h: refs/heads/master i: 97763: 3dace65 v: v3
1 parent 90c3d27 commit 8e63254

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 0da105a8b7b6b1e0568e8ff20f6ff4b13cc7ecc2
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 14b0abfd8204aa7673065800c4b8c2572eb5427f
4+
refs/heads/snap-stage3: 4b52d899fffd8e6ef01a5a05c1d513278a7823bd
55
refs/heads/try: c274a6888410ce3e357e014568b43310ed787d36
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/librustc/middle/trans/common.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ pub fn type_is_immediate(ccx: &CrateContext, ty: ty::t) -> bool {
6464
let tcx = ccx.tcx;
6565
let simple = ty::type_is_scalar(ty) || ty::type_is_boxed(ty) ||
6666
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) ||
6868
ty::type_is_simd(tcx, ty);
6969
if simple {
7070
return true;
@@ -75,7 +75,7 @@ pub fn type_is_immediate(ccx: &CrateContext, ty: ty::t) -> bool {
7575
let llty = sizing_type_of(ccx, ty);
7676
llsize_of_alloc(ccx, llty) <= llsize_of_alloc(ccx, ccx.int_type)
7777
}
78-
_ => false
78+
_ => type_is_voidish(ccx, ty)
7979
}
8080
}
8181

branches/snap-stage3/src/librustc/middle/trans/tvec.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,6 @@ pub fn get_base_and_byte_len(bcx: &Block,
553553

554554
match vstore {
555555
ty::vstore_fixed(n) => {
556-
assert!(!type_is_immediate(bcx.ccx(), vt.vec_ty));
557556
let base = GEPi(bcx, llval, [0u, 0u]);
558557
let len = Mul(bcx, C_uint(ccx, n), vt.llunit_size);
559558
(base, len)
@@ -596,7 +595,6 @@ pub fn get_base_and_len(bcx: &Block,
596595

597596
match vstore {
598597
ty::vstore_fixed(n) => {
599-
assert!(!type_is_immediate(bcx.ccx(), vt.vec_ty));
600598
let base = GEPi(bcx, llval, [0u, 0u]);
601599
(base, C_uint(ccx, n))
602600
}

0 commit comments

Comments
 (0)