[llvm] r247919 - [SCEV] Use auto instead of full iterator type; NFCI.

Sanjoy Das via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 17 12:04:09 PDT 2015


Author: sanjoy
Date: Thu Sep 17 14:04:09 2015
New Revision: 247919

URL: http://llvm.org/viewvc/llvm-project?rev=247919&view=rev
Log:
[SCEV] Use auto instead of full iterator type; NFCI.

Modified:
    llvm/trunk/lib/Analysis/ScalarEvolution.cpp

Modified: llvm/trunk/lib/Analysis/ScalarEvolution.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/ScalarEvolution.cpp?rev=247919&r1=247918&r2=247919&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/ScalarEvolution.cpp (original)
+++ llvm/trunk/lib/Analysis/ScalarEvolution.cpp Thu Sep 17 14:04:09 2015
@@ -1878,8 +1878,7 @@ CollectAddOperandsWithScales(DenseMap<co
         // 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 {




More information about the llvm-commits mailing list