Skip to content

Commit d1a2ea9

Browse files
committed
refine
1 parent 0db9531 commit d1a2ea9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Support/APInt.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2026,8 +2026,7 @@ APInt APInt::sfloordiv_ov(const APInt &RHS, bool &Overflow) const {
20262026
auto quotient = sdiv_ov(RHS, Overflow);
20272027
if ((quotient * RHS != *this) && (isNegative() != RHS.isNegative()))
20282028
return quotient - 1;
2029-
else
2030-
return quotient;
2029+
return quotient;
20312030
}
20322031

20332032
APInt APInt::sadd_sat(const APInt &RHS) const {

0 commit comments

Comments
 (0)