Code clean up.

llvm-svn: 103538
This commit is contained in:
Evan Cheng 2010-05-12 01:27:49 +00:00
parent ef8b9b3cde
commit 0c6ebc7d95
1 changed files with 2 additions and 1 deletions

View File

@ -1135,10 +1135,11 @@ static void UpdateRegSequenceSrcs(unsigned SrcReg,
unsigned DstReg, unsigned SrcIdx,
MachineRegisterInfo *MRI) {
for (MachineRegisterInfo::reg_iterator RI = MRI->reg_begin(SrcReg),
UE = MRI->reg_end(); RI != UE; ) {
RE = MRI->reg_end(); RI != RE; ) {
MachineOperand &MO = RI.getOperand();
++RI;
MO.setReg(DstReg);
assert(MO.getSubReg() == 0);
MO.setSubReg(SrcIdx);
}
}