mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-08 03:30:22 +00:00
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
This commit is contained in:
parent
7e004d177f
commit
478eed85f9
@ -940,7 +940,7 @@ namespace {
|
|||||||
bool MoreChildren = false;
|
bool MoreChildren = false;
|
||||||
size_t MaxChildDepth = QTop.second;
|
size_t MaxChildDepth = QTop.second;
|
||||||
VPPIteratorPair qtRange = ConnectedPairs.equal_range(QTop.first);
|
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) {
|
k != qtRange.second; ++k) {
|
||||||
// Make sure that this child pair is still a candidate:
|
// Make sure that this child pair is still a candidate:
|
||||||
bool IsStillCand = false;
|
bool IsStillCand = false;
|
||||||
@ -997,7 +997,7 @@ namespace {
|
|||||||
// Visit each child, pruning as necessary...
|
// Visit each child, pruning as necessary...
|
||||||
DenseMap<ValuePair, size_t> BestChilden;
|
DenseMap<ValuePair, size_t> BestChilden;
|
||||||
VPPIteratorPair QTopRange = ConnectedPairs.equal_range(QTop.first);
|
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) {
|
K != QTopRange.second; ++K) {
|
||||||
DenseMap<ValuePair, size_t>::iterator C = Tree.find(K->second);
|
DenseMap<ValuePair, size_t>::iterator C = Tree.find(K->second);
|
||||||
if (C == Tree.end()) continue;
|
if (C == Tree.end()) continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user