about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJorge Aparicio <japaricious@gmail.com>2016-11-09 14:45:44 -0500
committerJorge Aparicio <japaricious@gmail.com>2016-11-12 17:33:35 -0500
commit30e5667607ca6eb6b6fb8fbe44c420a8de2ea749 (patch)
tree6423738f07e4dd26e8b0ed3d350c9b478e475d35
parentf5a05adb25753e73107843fd010abc12c38841ee (diff)
downloadrust-30e5667607ca6eb6b6fb8fbe44c420a8de2ea749.tar.gz
rust-30e5667607ca6eb6b6fb8fbe44c420a8de2ea749.zip
fix #37673
-rw-r--r--src/librustc_trans/mir/rvalue.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/librustc_trans/mir/rvalue.rs b/src/librustc_trans/mir/rvalue.rs
index f25877b1de1..fc691649ae4 100644
--- a/src/librustc_trans/mir/rvalue.rs
+++ b/src/librustc_trans/mir/rvalue.rs
@@ -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")