Skip to content

Commit a7532da

Browse files
committed
Fix unchecked_ssub, unchecked_smul, and unchecked_umul
1 parent a00ea0b commit a7532da

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: src/builder.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> {
664664
}
665665

666666
fn unchecked_ssub(&mut self, a: RValue<'gcc>, b: RValue<'gcc>) -> RValue<'gcc> {
667-
a - b
667+
self.gcc_sub(a, b)
668668
}
669669

670670
fn unchecked_usub(&mut self, a: RValue<'gcc>, b: RValue<'gcc>) -> RValue<'gcc> {
@@ -673,11 +673,11 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> {
673673
}
674674

675675
fn unchecked_smul(&mut self, a: RValue<'gcc>, b: RValue<'gcc>) -> RValue<'gcc> {
676-
a * b
676+
self.gcc_mul(a, b)
677677
}
678678

679679
fn unchecked_umul(&mut self, a: RValue<'gcc>, b: RValue<'gcc>) -> RValue<'gcc> {
680-
a * b
680+
self.gcc_mul(a, b)
681681
}
682682

683683
fn fadd_fast(&mut self, lhs: RValue<'gcc>, rhs: RValue<'gcc>) -> RValue<'gcc> {

0 commit comments

Comments
 (0)