diff options
| author | Jeff Cohen <jeffc@jolt-lang.org> | 2006-02-03 03:48:54 +0000 |
|---|---|---|
| committer | Jeff Cohen <jeffc@jolt-lang.org> | 2006-02-03 03:48:54 +0000 |
| commit | 3276ff7ac66d032c3b1fbf532952d9c83b922b11 (patch) | |
| tree | e69adb7f1e4288218dc0e2cb8d658742456283fa /llvm/lib/CodeGen | |
| parent | e18ef0d4a629ed60d96372c553484e87a37f9d86 (diff) | |
| download | bcm5719-llvm-3276ff7ac66d032c3b1fbf532952d9c83b922b11.tar.gz bcm5719-llvm-3276ff7ac66d032c3b1fbf532952d9c83b922b11.zip | |
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.
llvm-svn: 25927
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/VirtRegMap.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/VirtRegMap.cpp b/llvm/lib/CodeGen/VirtRegMap.cpp index 8b08841ee9c..0a66304ef5c 100644 --- a/llvm/lib/CodeGen/VirtRegMap.cpp +++ b/llvm/lib/CodeGen/VirtRegMap.cpp @@ -234,7 +234,7 @@ namespace { 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++); |

