mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-26 18:20:39 +00:00
Fix VC++ compilation error caused by using a std::map iterator variable to receive
a std::multimap iterator value. For some reason, GCC doesn't have a problem with this. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25927 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -234,7 +234,7 @@ namespace {
|
|||||||
void LocalSpiller::ClobberPhysRegOnly(unsigned PhysReg,
|
void LocalSpiller::ClobberPhysRegOnly(unsigned PhysReg,
|
||||||
std::map<int, unsigned> &SpillSlots,
|
std::map<int, unsigned> &SpillSlots,
|
||||||
std::multimap<unsigned, int> &PhysRegsAvailable) {
|
std::multimap<unsigned, int> &PhysRegsAvailable) {
|
||||||
std::map<unsigned, int>::iterator I = PhysRegsAvailable.lower_bound(PhysReg);
|
std::multimap<unsigned, int>::iterator I = PhysRegsAvailable.lower_bound(PhysReg);
|
||||||
while (I != PhysRegsAvailable.end() && I->first == PhysReg) {
|
while (I != PhysRegsAvailable.end() && I->first == PhysReg) {
|
||||||
int Slot = I->second;
|
int Slot = I->second;
|
||||||
PhysRegsAvailable.erase(I++);
|
PhysRegsAvailable.erase(I++);
|
||||||
|
|||||||
Reference in New Issue
Block a user