fix(builder.rs): Apply suggestions from code review

Co-authored-by: antoyo <antoyo@users.noreply.github.com>
This commit is contained in:
tempdragon 2024-02-29 03:00:46 +08:00 committed by GitHub
parent ef158f295e
commit e18d3c3dfd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -721,9 +721,9 @@ 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 i = self.frem(lhs, rhs);
let result = self.frem(lhs, rhs);
set_rval_location(self, i);
i
result
}
fn checked_binop(&mut self, oop: OverflowOp, typ: Ty<'_>, lhs: Self::Value, rhs: Self::Value) -> (Self::Value, Self::Value) {