Skip to content

Commit 1e4986c

Browse files
committed
make the bottom type immediate
Before: define void @_ZN3bar19h9d9b965357abc043af4v0.0E({}* noalias nocapture readnone sret, { i64, %tydesc*, i8*, i8*, i8 }* nocapture readnone) After: define void @_ZN3bar19h9d9b965357abc043af4v0.0E({ i64, %tydesc*, i8*, i8*, i8 }* nocapture readnone)
1 parent 16b8a41 commit 1e4986c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/librustc/middle/trans/common.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ pub fn type_is_immediate(ccx: &mut CrateContext, ty: ty::t) -> bool {
7070
return true;
7171
}
7272
match ty::get(ty).sty {
73+
ty::ty_bot => true,
7374
ty::ty_struct(*) | ty::ty_enum(*) | ty::ty_tup(*) => {
7475
let llty = sizing_type_of(ccx, ty);
7576
llsize_of_alloc(ccx, llty) <= llsize_of_alloc(ccx, ccx.int_type)

0 commit comments

Comments
 (0)