Skip to content

Commit

Permalink
[Analysis] Drop an unnecessary const from a return type (NFC)
Browse files Browse the repository at this point in the history
Identified with readability-const-return-type.
  • Loading branch information
kazutakahirata committed Jan 31, 2022
1 parent 152d61a commit cda7b6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Analysis/ScalarEvolution.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit cda7b6a

Please sign in to comment.