]> git.lizzy.rs Git - rust.git/commitdiff
fix #37673
authorJorge Aparicio <japaricious@gmail.com>
Wed, 9 Nov 2016 19:45:44 +0000 (14:45 -0500)
committerJorge Aparicio <japaricious@gmail.com>
Sat, 12 Nov 2016 22:33:35 +0000 (17:33 -0500)
src/librustc_trans/mir/rvalue.rs

index f25877b1de12d1d398797227e6e3b85ea4243cdf..fc691649ae4ab7578ac4763325abde5666f59d8d 100644 (file)
@@ -729,11 +729,13 @@ fn get_overflow_intrinsic(oop: OverflowOp, bcx: &BlockAndBuilder, ty: Ty) -> Val
 
     let new_sty = match ty.sty {
         TyInt(Is) => match &tcx.sess.target.target.target_pointer_width[..] {
+            "16" => TyInt(I16),
             "32" => TyInt(I32),
             "64" => TyInt(I64),
             _ => panic!("unsupported target word size")
         },
         TyUint(Us) => match &tcx.sess.target.target.target_pointer_width[..] {
+            "16" => TyUint(U16),
             "32" => TyUint(U32),
             "64" => TyUint(U64),
             _ => panic!("unsupported target word size")