Skip to content

Commit 61ca542

Browse files
sebpopMeinersbur
andauthored
use auto on dyn_cast assign for readability
Co-authored-by: Michael Kruse <[email protected]>
1 parent 0837913 commit 61ca542

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Analysis/DependenceAnalysis.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3609,7 +3609,7 @@ static bool checkOffsets(ScalarEvolution *SE, const SCEV *V, const SCEV *&Param,
36093609

36103610
// Check whether "(Param - V) % Size == 0".
36113611
const SCEV *Diff = SE->getMinusSCEV(Param, V);
3612-
if (const SCEVConstant *Cst = dyn_cast<SCEVConstant>(Diff)) {
3612+
if (auto *Cst = dyn_cast<SCEVConstant>(Diff)) {
36133613
APInt Val = Cst->getAPInt();
36143614
if (Val.isZero())
36153615
return true;

0 commit comments

Comments
 (0)