Properly use const_iterator.

This should unbreak the Windows build.

llvm-svn: 141105
This commit is contained in:
Jakob Stoklund Olesen 2011-10-04 20:18:39 +00:00
parent 0a2fd00de5
commit b1147c4660
1 changed files with 4 additions and 4 deletions

View File

@ -757,11 +757,11 @@ void CodeGenRegBank::computeInferredRegisterClasses() {
// Compute the set of registers supporting each SubRegIndex.
SubReg2SetMap SRSets;
for (CodeGenRegister::Set::iterator RI = RC.getMembers().begin(),
for (CodeGenRegister::Set::const_iterator RI = RC.getMembers().begin(),
RE = RC.getMembers().end(); RI != RE; ++RI) {
CodeGenRegister::SubRegMap SRM = (*RI)->getSubRegs();
for (CodeGenRegister::SubRegMap::iterator I = SRM.begin(), E = SRM.end();
I != E; ++I)
const CodeGenRegister::SubRegMap &SRM = (*RI)->getSubRegs();
for (CodeGenRegister::SubRegMap::const_iterator I = SRM.begin(),
E = SRM.end(); I != E; ++I)
SRSets[I->first].insert(*RI);
}