Skip to content

Commit cedfde9

Browse files
committedOct 15, 2014
fix stupid error
1 parent e74e059 commit cedfde9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎src/librustc/middle/trans/common.rs

+3-2
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)
Please sign in to comment.