Skip to content

Commit 5061e3a

Browse files
committed
Remove redundant assertions
1 parent 00677e5 commit 5061e3a

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/intrinsic/mod.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1027,7 +1027,6 @@ impl<'a, 'gcc, 'tcx> Builder<'a, 'gcc, 'tcx> {
10271027
res.to_rvalue()
10281028
}
10291029
else {
1030-
assert!(!signed);
10311030
// Algorithm from: http://locklessinc.com/articles/sat_arithmetic/
10321031
let res = self.gcc_add(lhs, rhs);
10331032
let cond = self.gcc_icmp(IntPredicate::IntULT, res, lhs);
@@ -1098,7 +1097,6 @@ impl<'a, 'gcc, 'tcx> Builder<'a, 'gcc, 'tcx> {
10981097
res.to_rvalue()
10991098
}
11001099
else {
1101-
assert!(!signed);
11021100
let res = self.gcc_sub(lhs, rhs);
11031101
let comparison = self.gcc_icmp(IntPredicate::IntULE, res, lhs);
11041102
let value = self.gcc_neg(self.gcc_int_cast(comparison, result_type));

0 commit comments

Comments
 (0)