about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/builder.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/builder.rs b/src/builder.rs
index 9afca472b5f..aac40282689 100644
--- a/src/builder.rs
+++ b/src/builder.rs
@@ -722,7 +722,7 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> {
     fn frem_fast(&mut self, lhs: RValue<'gcc>, rhs: RValue<'gcc>) -> RValue<'gcc> {
         // NOTE: it seems like we cannot enable fast-mode for a single operation in GCC.
         let result = self.frem(lhs, rhs);
-        set_rval_location(self, i);
+        set_rval_location(self, result);
         result
     }