Skip to content

Commit 411997c

Browse files
[ADT] Drop "const" from "const APInt" (NFC) (llvm#138825)
1 parent 0c01b31 commit 411997c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/include/llvm/ADT/APInt.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -2234,12 +2234,12 @@ inline const APInt &umax(const APInt &A, const APInt &B) {
22342234
}
22352235

22362236
/// Determine the absolute difference of two APInts considered to be signed.
2237-
inline const APInt abds(const APInt &A, const APInt &B) {
2237+
inline APInt abds(const APInt &A, const APInt &B) {
22382238
return A.sge(B) ? (A - B) : (B - A);
22392239
}
22402240

22412241
/// Determine the absolute difference of two APInts considered to be unsigned.
2242-
inline const APInt abdu(const APInt &A, const APInt &B) {
2242+
inline APInt abdu(const APInt &A, const APInt &B) {
22432243
return A.uge(B) ? (A - B) : (B - A);
22442244
}
22452245

0 commit comments

Comments
 (0)