Skip to content

Commit

Permalink
fix #37673
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorge Aparicio committed Nov 12, 2016
1 parent f5a05ad commit 30e5667
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/librustc_trans/mir/rvalue.rs
Expand Up @@ -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")
Expand Down

0 comments on commit 30e5667

Please sign in to comment.