mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-02 16:56:50 +00:00
Properly use const_iterator.
This should unbreak the Windows build. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141105 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1e97def44a
commit
dae7909be3
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user