From b4830a84b96eb852ad4e97ad0cc22a1ea93da637 Mon Sep 17 00:00:00 2001 From: Sanjoy Das Date: Sun, 30 Oct 2016 23:52:53 +0000 Subject: [SCEV] Use auto for consistency with an upcoming change; NFC llvm-svn: 285528 --- llvm/lib/Analysis/ScalarEvolution.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'llvm/lib/Analysis') diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp index f03051ddb4a..fd8cec54826 100644 --- a/llvm/lib/Analysis/ScalarEvolution.cpp +++ b/llvm/lib/Analysis/ScalarEvolution.cpp @@ -471,16 +471,16 @@ static int CompareValueComplexity(const LoopInfo *const LI, Value *LV, return (int)LID - (int)RID; // Sort arguments by their position. - if (const Argument *LA = dyn_cast(LV)) { - const Argument *RA = cast(RV); + if (const auto *LA = dyn_cast(LV)) { + const auto *RA = cast(RV); unsigned LArgNo = LA->getArgNo(), RArgNo = RA->getArgNo(); return (int)LArgNo - (int)RArgNo; } // For instructions, compare their loop depth, and their operand count. This // is pretty loose. - if (const Instruction *LInst = dyn_cast(LV)) { - const Instruction *RInst = cast(RV); + if (const auto *LInst = dyn_cast(LV)) { + const auto *RInst = cast(RV); // Compare loop depths. const BasicBlock *LParent = LInst->getParent(), -- cgit v1.2.3