@@ -659,7 +659,7 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> {
659
659
}
660
660
661
661
fn xor ( & mut self , a : RValue < ' gcc > , b : RValue < ' gcc > ) -> RValue < ' gcc > {
662
- set_rval_location ( self , self . gcc_xor ( a, b) )
662
+ set_rval_location ( self , self . gcc_xor ( a, b) )
663
663
}
664
664
665
665
fn neg ( & mut self , a : RValue < ' gcc > ) -> RValue < ' gcc > {
@@ -721,9 +721,9 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> {
721
721
722
722
fn frem_fast ( & mut self , lhs : RValue < ' gcc > , rhs : RValue < ' gcc > ) -> RValue < ' gcc > {
723
723
// NOTE: it seems like we cannot enable fast-mode for a single operation in GCC.
724
- let i = self . frem ( lhs, rhs) ;
725
- set_rval_location ( self , i) ;
726
- i
724
+ let result = self . frem ( lhs, rhs) ;
725
+ set_rval_location ( self , i) ;
726
+ result
727
727
}
728
728
729
729
fn checked_binop ( & mut self , oop : OverflowOp , typ : Ty < ' _ > , lhs : Self :: Value , rhs : Self :: Value ) -> ( Self :: Value , Self :: Value ) {
@@ -1010,7 +1010,7 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> {
1010
1010
}
1011
1011
1012
1012
fn fptoui ( & mut self , value : RValue < ' gcc > , dest_ty : Type < ' gcc > ) -> RValue < ' gcc > {
1013
- set_rval_location ( self , self . gcc_float_to_uint_cast ( value, dest_ty) )
1013
+ set_rval_location ( self , self . gcc_float_to_uint_cast ( value, dest_ty) )
1014
1014
}
1015
1015
1016
1016
fn fptosi ( & mut self , value : RValue < ' gcc > , dest_ty : Type < ' gcc > ) -> RValue < ' gcc > {
@@ -1036,7 +1036,7 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> {
1036
1036
1037
1037
fn ptrtoint ( & mut self , value : RValue < ' gcc > , dest_ty : Type < ' gcc > ) -> RValue < ' gcc > {
1038
1038
let usize_value = self . cx . const_bitcast ( value, self . cx . type_isize ( ) ) ;
1039
- self . intcast ( usize_value, dest_ty, false )
1039
+ self . intcast ( usize_value, dest_ty, false )
1040
1040
}
1041
1041
1042
1042
fn inttoptr ( & mut self , value : RValue < ' gcc > , dest_ty : Type < ' gcc > ) -> RValue < ' gcc > {
0 commit comments