From 478eed85f96f0d93da43e26cfb7fc6dee981c9aa Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Wed, 1 Feb 2012 06:11:58 +0000 Subject: [PATCH] BBVectorize.cpp: Try to fix MSVC build. map::iterator and multimap::iterator are incompatible. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149475 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Vectorize/BBVectorize.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Transforms/Vectorize/BBVectorize.cpp b/lib/Transforms/Vectorize/BBVectorize.cpp index 6d879b79b0c..150468af92f 100644 --- a/lib/Transforms/Vectorize/BBVectorize.cpp +++ b/lib/Transforms/Vectorize/BBVectorize.cpp @@ -940,7 +940,7 @@ namespace { bool MoreChildren = false; size_t MaxChildDepth = QTop.second; VPPIteratorPair qtRange = ConnectedPairs.equal_range(QTop.first); - for (std::map::iterator k = qtRange.first; + for (std::multimap::iterator k = qtRange.first; k != qtRange.second; ++k) { // Make sure that this child pair is still a candidate: bool IsStillCand = false; @@ -997,7 +997,7 @@ namespace { // Visit each child, pruning as necessary... DenseMap BestChilden; VPPIteratorPair QTopRange = ConnectedPairs.equal_range(QTop.first); - for (std::map::iterator K = QTopRange.first; + for (std::multimap::iterator K = QTopRange.first; K != QTopRange.second; ++K) { DenseMap::iterator C = Tree.find(K->second); if (C == Tree.end()) continue;