@@ -70,7 +70,7 @@ impl<'a, 'gcc, 'tcx> Builder<'a, 'gcc, 'tcx> {
70
70
cx,
71
71
block,
72
72
stack_var_count : Cell :: new ( 0 ) ,
73
- loc : None
73
+ loc : None
74
74
}
75
75
}
76
76
@@ -541,12 +541,7 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> {
541
541
}
542
542
543
543
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)
550
545
}
551
546
552
547
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> {
660
655
}
661
656
662
657
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 )
670
659
}
671
660
672
661
fn xor ( & mut self , a : RValue < ' gcc > , b : RValue < ' gcc > ) -> RValue < ' gcc > {
0 commit comments