[llvm] 411997c - [ADT] Drop "const" from "const APInt" (NFC) (#138825)

via llvm-commits llvm-commits at lists.llvm.org
Wed May 7 09:54:02 PDT 2025


Author: Kazu Hirata
Date: 2025-05-07T09:53:59-07:00
New Revision: 411997ce21dca777100fc5105a12be1f13807e39

URL: https://github.com/llvm/llvm-project/commit/411997ce21dca777100fc5105a12be1f13807e39
DIFF: https://github.com/llvm/llvm-project/commit/411997ce21dca777100fc5105a12be1f13807e39.diff

LOG: [ADT] Drop "const" from "const APInt" (NFC) (#138825)

Added: 
    

Modified: 
    llvm/include/llvm/ADT/APInt.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/ADT/APInt.h b/llvm/include/llvm/ADT/APInt.h
index 02d58d8c3d31c..ba33c49fb5191 100644
--- a/llvm/include/llvm/ADT/APInt.h
+++ b/llvm/include/llvm/ADT/APInt.h
@@ -2234,12 +2234,12 @@ inline const APInt &umax(const APInt &A, const APInt &B) {
 }
 
 /// Determine the absolute 
diff erence of two APInts considered to be signed.
-inline const APInt abds(const APInt &A, const APInt &B) {
+inline APInt abds(const APInt &A, const APInt &B) {
   return A.sge(B) ? (A - B) : (B - A);
 }
 
 /// Determine the absolute 
diff erence of two APInts considered to be unsigned.
-inline const APInt abdu(const APInt &A, const APInt &B) {
+inline APInt abdu(const APInt &A, const APInt &B) {
   return A.uge(B) ? (A - B) : (B - A);
 }
 


        


More information about the llvm-commits mailing list