[llvm] cda7b6a - [Analysis] Drop an unnecessary const from a return type (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sun Jan 30 16:05:16 PST 2022
Author: Kazu Hirata
Date: 2022-01-30T16:04:58-08:00
New Revision: cda7b6aaf343b03493d2fc83c6d507e9f4a8ebd1
URL: https://github.com/llvm/llvm-project/commit/cda7b6aaf343b03493d2fc83c6d507e9f4a8ebd1
DIFF: https://github.com/llvm/llvm-project/commit/cda7b6aaf343b03493d2fc83c6d507e9f4a8ebd1.diff
LOG: [Analysis] Drop an unnecessary 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 46833a8a681ba..402d6311f2288 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;
}
-const APInt gcd(const SCEVConstant *C1, const SCEVConstant *C2) {
+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