From 2ba0b02e15d8ed79e0c42fd6f85ab6c142d93a8a Mon Sep 17 00:00:00 2001 From: Jeff Cohen Date: Fri, 3 Feb 2006 03:48:54 +0000 Subject: [PATCH] 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 --- lib/CodeGen/VirtRegMap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CodeGen/VirtRegMap.cpp b/lib/CodeGen/VirtRegMap.cpp index 8b08841ee9c..0a66304ef5c 100644 --- a/lib/CodeGen/VirtRegMap.cpp +++ b/lib/CodeGen/VirtRegMap.cpp @@ -234,7 +234,7 @@ namespace { void LocalSpiller::ClobberPhysRegOnly(unsigned PhysReg, std::map &SpillSlots, std::multimap &PhysRegsAvailable) { - std::map::iterator I = PhysRegsAvailable.lower_bound(PhysReg); + std::multimap::iterator I = PhysRegsAvailable.lower_bound(PhysReg); while (I != PhysRegsAvailable.end() && I->first == PhysReg) { int Slot = I->second; PhysRegsAvailable.erase(I++);