@@ -70,7 +70,7 @@ impl<'a, 'gcc, 'tcx> Builder<'a, 'gcc, 'tcx> {
7070 cx,
7171 block,
7272 stack_var_count : Cell :: new ( 0 ) ,
73- loc : None
73+ loc : None
7474 }
7575 }
7676
@@ -541,12 +541,7 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> {
541541 }
542542
543543 fn fmul ( & mut self , a : RValue < ' gcc > , b : RValue < ' gcc > ) -> RValue < ' gcc > {
544- let i=a * b;
545- if self . loc . is_some ( ) {
546- #[ cfg( feature = "master" ) ]
547- i. set_location ( self . loc . clone ( ) . unwrap ( ) ) ;
548- }
549- i
544+ self . cx . context . new_binary_op ( self . loc , BinaryOp :: Mult , a. get_type ( ) , a, b)
550545 }
551546
552547 fn udiv ( & mut self , a : RValue < ' gcc > , b : RValue < ' gcc > ) -> RValue < ' gcc > {
@@ -660,13 +655,7 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> {
660655 }
661656
662657 fn or ( & mut self , a : RValue < ' gcc > , b : RValue < ' gcc > ) -> RValue < ' gcc > {
663- let ret = self . cx . gcc_or ( a, b, self . loc ) ;
664-
665- if self . loc . is_some ( ) {
666- #[ cfg( feature = "master" ) ]
667- ret. set_location ( self . loc . unwrap ( ) ) ;
668- }
669- ret
658+ self . cx . gcc_or ( a, b, self . loc )
670659 }
671660
672661 fn xor ( & mut self , a : RValue < ' gcc > , b : RValue < ' gcc > ) -> RValue < ' gcc > {
0 commit comments