[llvm] 448d0df - [Analysis] Remove a redundant const from a return type (NFC)

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 23 14:00:22 PST 2022


Author: Kazu Hirata
Date: 2022-01-23T14:00:03-08:00
New Revision: 448d0dfab701ab00d081136d8373304fd91693a0

URL: https://github.com/llvm/llvm-project/commit/448d0dfab701ab00d081136d8373304fd91693a0
DIFF: https://github.com/llvm/llvm-project/commit/448d0dfab701ab00d081136d8373304fd91693a0.diff

LOG: [Analysis] Remove a redundant const from a return type (NFC)

Identified with readability-const-return-type.

Added: 
    

Modified: 
    llvm/lib/Analysis/ScalarEvolution.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp
index e2d5df84be52f..3019ff526b66d 100644
--- a/llvm/lib/Analysis/ScalarEvolution.cpp
+++ b/llvm/lib/Analysis/ScalarEvolution.cpp
@@ -3486,7 +3486,7 @@ const SCEV *ScalarEvolution::getUDivExpr(const SCEV *LHS,
   return S;
 }
 
-static const APInt gcd(const SCEVConstant *C1, const SCEVConstant *C2) {
+const APInt gcd(const SCEVConstant *C1, const SCEVConstant *C2) {
   APInt A = C1->getAPInt().abs();
   APInt B = C2->getAPInt().abs();
   uint32_t ABW = A.getBitWidth();


        


More information about the llvm-commits mailing list