Changes in directory llvm/lib/CodeGen:

VirtRegMap.cpp updated: 1.50 -> 1.51
---
Log message:

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.


---
Diffs of the changes:  (+1 -1)

 VirtRegMap.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/CodeGen/VirtRegMap.cpp
diff -u llvm/lib/CodeGen/VirtRegMap.cpp:1.50 
llvm/lib/CodeGen/VirtRegMap.cpp:1.51
--- llvm/lib/CodeGen/VirtRegMap.cpp:1.50        Thu Feb  2 21:16:14 2006
+++ llvm/lib/CodeGen/VirtRegMap.cpp     Thu Feb  2 21:48:54 2006
@@ -234,7 +234,7 @@
 void LocalSpiller::ClobberPhysRegOnly(unsigned PhysReg,
                                       std::map<int, unsigned> &SpillSlots,
                               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) {
     int Slot = I->second;
     PhysRegsAvailable.erase(I++);



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to