Skip to content

Commit 8ec309d

Browse files
committed
---
yaml --- r: 156420 b: refs/heads/snap-stage3 c: cedfde9 h: refs/heads/master v: v3
1 parent 6076e8b commit 8ec309d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: c29a7520e7fb4a5b4d4eccfc594e05793ef6688d
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: e74e059bd428332216d1b780e608cb824bc8c150
4+
refs/heads/snap-stage3: cedfde9769f3bb4ba8eb1fbf75dbafe80cd226de
55
refs/heads/try: 6601b0501e31d08d3892a2d5a7d8a57ab120bf75
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/librustc/middle/trans/common.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ use middle::trans::build;
2626
use middle::trans::cleanup;
2727
use middle::trans::datum;
2828
use middle::trans::debuginfo;
29+
use middle::trans::machine;
2930
use middle::trans::type_::Type;
3031
use middle::trans::type_of;
3132
use middle::traits;
@@ -598,7 +599,7 @@ pub fn C_u64(ccx: &CrateContext, i: u64) -> ValueRef {
598599
pub fn C_int<I: AsI64>(ccx: &CrateContext, i: I) -> ValueRef {
599600
let v = i.as_i64();
600601

601-
match machine::llbitsize_of_real(ccx.int_type()) {
602+
match machine::llbitsize_of_real(ccx, ccx.int_type()) {
602603
32 => assert!(v < (1<<31) && v >= -(1<<31)),
603604
64 => {},
604605
n => fail!("unsupported target size: {}", n)
@@ -610,7 +611,7 @@ pub fn C_int<I: AsI64>(ccx: &CrateContext, i: I) -> ValueRef {
610611
pub fn C_uint<I: AsU64>(ccx: &CrateContext, i: I) -> ValueRef {
611612
let v = i.as_u64();
612613

613-
match machine::llbitsize_of_real(ccx.int_type()) {
614+
match machine::llbitsize_of_real(ccx, ccx.int_type()) {
614615
32 => assert!(v < (1<<32)),
615616
64 => {},
616617
n => fail!("unsupported target size: {}", n)

0 commit comments

Comments
 (0)