Skip to content

Commit 30e5667

Browse files
author
Jorge Aparicio
committed
fix #37673
1 parent f5a05ad commit 30e5667

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/librustc_trans/mir/rvalue.rs

+2
Original file line numberDiff line numberDiff line change
@@ -729,11 +729,13 @@ fn get_overflow_intrinsic(oop: OverflowOp, bcx: &BlockAndBuilder, ty: Ty) -> Val
729729

730730
let new_sty = match ty.sty {
731731
TyInt(Is) => match &tcx.sess.target.target.target_pointer_width[..] {
732+
"16" => TyInt(I16),
732733
"32" => TyInt(I32),
733734
"64" => TyInt(I64),
734735
_ => panic!("unsupported target word size")
735736
},
736737
TyUint(Us) => match &tcx.sess.target.target.target_pointer_width[..] {
738+
"16" => TyUint(U16),
737739
"32" => TyUint(U32),
738740
"64" => TyUint(U64),
739741
_ => panic!("unsupported target word size")

0 commit comments

Comments
 (0)