File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
branches/snap-stage3/src/librustc/middle/trans Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: 4c6bf4872012c010f84dc7fa2cdfe87522533f89
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
- refs/heads/snap-stage3: abe648d60854c7dbbc0c9db5f29111268c66961d
4
+ refs/heads/snap-stage3: f2932e46614ab0f91f7dfd064cadf1e3db2a9667
5
5
refs/heads/try: 70152ff55722878cde684ee6462c14c65f2c4729
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
Original file line number Diff line number Diff line change @@ -69,9 +69,13 @@ pub fn type_is_immediate(ccx: &mut CrateContext, ty: ty::t) -> bool {
69
69
if simple {
70
70
return true ;
71
71
}
72
+ // FIXME: #9651: C-like enums should also be immediate
73
+ if ty:: type_is_c_like_enum ( ccx. tcx , ty) {
74
+ return false ;
75
+ }
72
76
match ty:: get ( ty) . sty {
73
- // FIXME: #9651: small `ty_struct` and `ty_enum` should also be immediate
74
- ty:: ty_tup( * ) => {
77
+ // FIXME: #9651: small `ty_struct` should also be immediate
78
+ ty:: ty_enum ( * ) | ty :: ty_tup( * ) => {
75
79
let llty = sizing_type_of ( ccx, ty) ;
76
80
llsize_of_alloc ( ccx, llty) <= llsize_of_alloc ( ccx, ccx. int_type )
77
81
}
You can’t perform that action at this time.
0 commit comments