1
- use libc:: c_uint;
2
1
use rustc:: ty:: { self , Ty , TypeFoldable , UpvarSubsts } ;
3
2
use rustc:: ty:: layout:: { TyLayout , HasTyCtxt } ;
4
3
use rustc:: mir:: { self , Mir } ;
@@ -534,18 +533,18 @@ fn arg_local_refs<'a, 'tcx: 'a, Bx: BuilderMethods<'a, 'tcx>>(
534
533
}
535
534
PassMode :: Ignore ( IgnoreMode :: CVarArgs ) => { }
536
535
PassMode :: Direct ( _) => {
537
- let llarg = bx. get_param ( bx. llfn ( ) , llarg_idx as c_uint ) ;
536
+ let llarg = bx. get_param ( bx. llfn ( ) , llarg_idx) ;
538
537
bx. set_value_name ( llarg, & name) ;
539
538
llarg_idx += 1 ;
540
539
return local (
541
540
OperandRef :: from_immediate_or_packed_pair ( bx, llarg, arg. layout ) ) ;
542
541
}
543
542
PassMode :: Pair ( ..) => {
544
- let a = bx. get_param ( bx. llfn ( ) , llarg_idx as c_uint ) ;
543
+ let a = bx. get_param ( bx. llfn ( ) , llarg_idx) ;
545
544
bx. set_value_name ( a, & ( name. clone ( ) + ".0" ) ) ;
546
545
llarg_idx += 1 ;
547
546
548
- let b = bx. get_param ( bx. llfn ( ) , llarg_idx as c_uint ) ;
547
+ let b = bx. get_param ( bx. llfn ( ) , llarg_idx) ;
549
548
bx. set_value_name ( b, & ( name + ".1" ) ) ;
550
549
llarg_idx += 1 ;
551
550
@@ -562,16 +561,16 @@ fn arg_local_refs<'a, 'tcx: 'a, Bx: BuilderMethods<'a, 'tcx>>(
562
561
// Don't copy an indirect argument to an alloca, the caller
563
562
// already put it in a temporary alloca and gave it up.
564
563
// FIXME: lifetimes
565
- let llarg = bx. get_param ( bx. llfn ( ) , llarg_idx as c_uint ) ;
564
+ let llarg = bx. get_param ( bx. llfn ( ) , llarg_idx) ;
566
565
bx. set_value_name ( llarg, & name) ;
567
566
llarg_idx += 1 ;
568
567
PlaceRef :: new_sized ( llarg, arg. layout , arg. layout . align . abi )
569
568
} else if arg. is_unsized_indirect ( ) {
570
569
// As the storage for the indirect argument lives during
571
570
// the whole function call, we just copy the fat pointer.
572
- let llarg = bx. get_param ( bx. llfn ( ) , llarg_idx as c_uint ) ;
571
+ let llarg = bx. get_param ( bx. llfn ( ) , llarg_idx) ;
573
572
llarg_idx += 1 ;
574
- let llextra = bx. get_param ( bx. llfn ( ) , llarg_idx as c_uint ) ;
573
+ let llextra = bx. get_param ( bx. llfn ( ) , llarg_idx) ;
575
574
llarg_idx += 1 ;
576
575
let indirect_operand = OperandValue :: Pair ( llarg, llextra) ;
577
576
0 commit comments