1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

BBVectorize.cpp: Try to fix MSVC build. map::iterator and multimap::iterator are incompatible.

llvm-svn: 149475
This commit is contained in:
NAKAMURA Takumi 2012-02-01 06:11:58 +00:00
parent 15dafd979c
commit 8068191bb8

View File

@ -940,7 +940,7 @@ namespace {
bool MoreChildren = false;
size_t MaxChildDepth = QTop.second;
VPPIteratorPair qtRange = ConnectedPairs.equal_range(QTop.first);
for (std::map<ValuePair, ValuePair>::iterator k = qtRange.first;
for (std::multimap<ValuePair, ValuePair>::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<ValuePair, size_t> BestChilden;
VPPIteratorPair QTopRange = ConnectedPairs.equal_range(QTop.first);
for (std::map<ValuePair, ValuePair>::iterator K = QTopRange.first;
for (std::multimap<ValuePair, ValuePair>::iterator K = QTopRange.first;
K != QTopRange.second; ++K) {
DenseMap<ValuePair, size_t>::iterator C = Tree.find(K->second);
if (C == Tree.end()) continue;