summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSanjoy Das <sanjoy@playingwithpointers.com>2015-09-17 19:04:09 +0000
committerSanjoy Das <sanjoy@playingwithpointers.com>2015-09-17 19:04:09 +0000
commit7a9f8bb995e60bb61204078b0c2b44749dbfb710 (patch)
tree106b0ece8cbdd7c8b3d72d78c3d76b918ee81f15
parentab39039a2fdfab701bca4bd7d45bceff46cb8527 (diff)
downloadbcm5719-llvm-7a9f8bb995e60bb61204078b0c2b44749dbfb710.tar.gz
bcm5719-llvm-7a9f8bb995e60bb61204078b0c2b44749dbfb710.zip
[SCEV] Use auto instead of full iterator type; NFCI.
llvm-svn: 247919
-rw-r--r--llvm/lib/Analysis/ScalarEvolution.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp
index 3bdbee3e52c..262280c8a9c 100644
--- a/llvm/lib/Analysis/ScalarEvolution.cpp
+++ b/llvm/lib/Analysis/ScalarEvolution.cpp
@@ -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 {
OpenPOWER on IntegriCloud