Skip to content

Commit 95f81a2

Browse files
committed
Remove some calls to assign_to_var
1 parent a380380 commit 95f81a2

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/builder.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -829,20 +829,17 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> {
829829
}
830830

831831
fn shl(&mut self, a: RValue<'gcc>, b: RValue<'gcc>) -> RValue<'gcc> {
832-
let result = self.gcc_shl(a, b);
833-
self.assign_to_var(result)
832+
self.gcc_shl(a, b)
834833
}
835834

836835
fn lshr(&mut self, a: RValue<'gcc>, b: RValue<'gcc>) -> RValue<'gcc> {
837-
let result = self.gcc_lshr(a, b);
838-
self.assign_to_var(result)
836+
self.gcc_lshr(a, b)
839837
}
840838

841839
fn ashr(&mut self, a: RValue<'gcc>, b: RValue<'gcc>) -> RValue<'gcc> {
842840
// TODO(antoyo): check whether behavior is an arithmetic shift for >> .
843841
// It seems to be if the value is signed.
844-
let result = self.gcc_lshr(a, b);
845-
self.assign_to_var(result)
842+
self.gcc_lshr(a, b)
846843
}
847844

848845
fn and(&mut self, a: RValue<'gcc>, b: RValue<'gcc>) -> RValue<'gcc> {

0 commit comments

Comments
 (0)