@@ -663,60 +663,60 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> {
663663 }
664664
665665 fn neg ( & mut self , a : RValue < ' gcc > ) -> RValue < ' gcc > {
666- set_rval_location ( self , self . gcc_neg ( a) )
666+ set_rval_location ( self , self . gcc_neg ( a) )
667667 }
668668
669669 fn fneg ( & mut self , a : RValue < ' gcc > ) -> RValue < ' gcc > {
670- set_rval_location ( self , self . cx . context . new_unary_op ( self . loc , UnaryOp :: Minus , a. get_type ( ) , a) )
670+ set_rval_location ( self , self . cx . context . new_unary_op ( self . loc , UnaryOp :: Minus , a. get_type ( ) , a) )
671671 }
672672
673673 fn not ( & mut self , a : RValue < ' gcc > ) -> RValue < ' gcc > {
674- set_rval_location ( self , self . gcc_not ( a) )
674+ set_rval_location ( self , self . gcc_not ( a) )
675675 }
676676
677677 fn unchecked_sadd ( & mut self , a : RValue < ' gcc > , b : RValue < ' gcc > ) -> RValue < ' gcc > {
678- set_rval_location ( self , self . gcc_add ( a, b) )
678+ set_rval_location ( self , self . gcc_add ( a, b) )
679679 }
680680
681681 fn unchecked_uadd ( & mut self , a : RValue < ' gcc > , b : RValue < ' gcc > ) -> RValue < ' gcc > {
682- set_rval_location ( self , self . gcc_add ( a, b) )
682+ set_rval_location ( self , self . gcc_add ( a, b) )
683683 }
684684
685685 fn unchecked_ssub ( & mut self , a : RValue < ' gcc > , b : RValue < ' gcc > ) -> RValue < ' gcc > {
686- set_rval_location ( self , self . gcc_sub ( a, b) )
686+ set_rval_location ( self , self . gcc_sub ( a, b) )
687687 }
688688
689689 fn unchecked_usub ( & mut self , a : RValue < ' gcc > , b : RValue < ' gcc > ) -> RValue < ' gcc > {
690690 // TODO(antoyo): should generate poison value?
691- set_rval_location ( self , self . gcc_sub ( a, b) )
691+ set_rval_location ( self , self . gcc_sub ( a, b) )
692692 }
693693
694694 fn unchecked_smul ( & mut self , a : RValue < ' gcc > , b : RValue < ' gcc > ) -> RValue < ' gcc > {
695- set_rval_location ( self , self . gcc_mul ( a, b) )
695+ set_rval_location ( self , self . gcc_mul ( a, b) )
696696 }
697697
698698 fn unchecked_umul ( & mut self , a : RValue < ' gcc > , b : RValue < ' gcc > ) -> RValue < ' gcc > {
699- set_rval_location ( self , self . gcc_mul ( a, b) )
699+ set_rval_location ( self , self . gcc_mul ( a, b) )
700700 }
701701
702702 fn fadd_fast ( & mut self , lhs : RValue < ' gcc > , rhs : RValue < ' gcc > ) -> RValue < ' gcc > {
703703 // NOTE: it seems like we cannot enable fast-mode for a single operation in GCC.
704- set_rval_location ( self , lhs + rhs)
704+ set_rval_location ( self , lhs + rhs)
705705 }
706706
707707 fn fsub_fast ( & mut self , lhs : RValue < ' gcc > , rhs : RValue < ' gcc > ) -> RValue < ' gcc > {
708708 // NOTE: it seems like we cannot enable fast-mode for a single operation in GCC.
709- set_rval_location ( self , lhs - rhs)
709+ set_rval_location ( self , lhs - rhs)
710710 }
711711
712712 fn fmul_fast ( & mut self , lhs : RValue < ' gcc > , rhs : RValue < ' gcc > ) -> RValue < ' gcc > {
713713 // NOTE: it seems like we cannot enable fast-mode for a single operation in GCC.
714- set_rval_location ( self , lhs * rhs)
714+ set_rval_location ( self , lhs * rhs)
715715 }
716716
717717 fn fdiv_fast ( & mut self , lhs : RValue < ' gcc > , rhs : RValue < ' gcc > ) -> RValue < ' gcc > {
718718 // NOTE: it seems like we cannot enable fast-mode for a single operation in GCC.
719- set_rval_location ( self , lhs / rhs)
719+ set_rval_location ( self , lhs / rhs)
720720 }
721721
722722 fn frem_fast ( & mut self , lhs : RValue < ' gcc > , rhs : RValue < ' gcc > ) -> RValue < ' gcc > {
@@ -1014,24 +1014,24 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> {
10141014 }
10151015
10161016 fn fptosi ( & mut self , value : RValue < ' gcc > , dest_ty : Type < ' gcc > ) -> RValue < ' gcc > {
1017- set_rval_location ( self , self . gcc_float_to_int_cast ( value, dest_ty) )
1017+ set_rval_location ( self , self . gcc_float_to_int_cast ( value, dest_ty) )
10181018 }
10191019
10201020 fn uitofp ( & mut self , value : RValue < ' gcc > , dest_ty : Type < ' gcc > ) -> RValue < ' gcc > {
1021- set_rval_location ( self , self . gcc_uint_to_float_cast ( value, dest_ty) )
1021+ set_rval_location ( self , self . gcc_uint_to_float_cast ( value, dest_ty) )
10221022 }
10231023
10241024 fn sitofp ( & mut self , value : RValue < ' gcc > , dest_ty : Type < ' gcc > ) -> RValue < ' gcc > {
1025- set_rval_location ( self , self . gcc_int_to_float_cast ( value, dest_ty) )
1025+ set_rval_location ( self , self . gcc_int_to_float_cast ( value, dest_ty) )
10261026 }
10271027
10281028 fn fptrunc ( & mut self , value : RValue < ' gcc > , dest_ty : Type < ' gcc > ) -> RValue < ' gcc > {
10291029 // TODO(antoyo): make sure it truncates.
1030- set_rval_location ( self , self . context . new_cast ( self . loc , value, dest_ty) )
1030+ set_rval_location ( self , self . context . new_cast ( self . loc , value, dest_ty) )
10311031 }
10321032
10331033 fn fpext ( & mut self , value : RValue < ' gcc > , dest_ty : Type < ' gcc > ) -> RValue < ' gcc > {
1034- set_rval_location ( self , self . context . new_cast ( self . loc , value, dest_ty) )
1034+ set_rval_location ( self , self . context . new_cast ( self . loc , value, dest_ty) )
10351035 }
10361036
10371037 fn ptrtoint ( & mut self , value : RValue < ' gcc > , dest_ty : Type < ' gcc > ) -> RValue < ' gcc > {
@@ -1059,7 +1059,7 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> {
10591059 ( false , true ) => {
10601060 // NOTE: Projecting a field of a pointer type will attempt a cast from a signed char to
10611061 // a pointer, which is not supported by gccjit.
1062- return self . cx . context . new_cast ( self . loc , self . inttoptr ( value, val_type. make_pointer ( ) ) , dest_ty) ;
1062+ self . cx . context . new_cast ( self . loc , self . inttoptr ( value, val_type. make_pointer ( ) ) , dest_ty)
10631063 } ,
10641064 ( false , false ) => {
10651065 // When they are not pointers, we want a transmute (or reinterpret_cast).
0 commit comments