[SCEV] Use auto instead of full iterator type; NFCI.
authorSanjoy Das <sanjoy@playingwithpointers.com>
Thu, 17 Sep 2015 19:04:09 +0000 (19:04 +0000)
committerSanjoy Das <sanjoy@playingwithpointers.com>
Thu, 17 Sep 2015 19:04:09 +0000 (19:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247919 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/ScalarEvolution.cpp

index 3bdbee3e52c75cc5fcf92d02d1512049110e87cc..262280c8a9c007b2d3cdc0d052b913249bff5d58 100644 (file)
@@ -1878,8 +1878,7 @@ CollectAddOperandsWithScales(DenseMap<const SCEV *, APInt> &M,
         // the map.
         SmallVector<const SCEV *, 4> MulOps(Mul->op_begin()+1, Mul->op_end());
         const SCEV *Key = SE.getMulExpr(MulOps);
-        std::pair<DenseMap<const SCEV *, APInt>::iterator, bool> Pair =
-          M.insert(std::make_pair(Key, NewScale));
+        auto Pair = M.insert(std::make_pair(Key, NewScale));
         if (Pair.second) {
           NewOps.push_back(Pair.first->first);
         } else {