diff options
author | Evan Cheng <evan.cheng@apple.com> | 2010-05-12 01:27:49 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2010-05-12 01:27:49 +0000 |
commit | 3ae56bcd8ab0b9cba006f772a623b81d4c7bfd7f (patch) | |
tree | e60e264893a74383764ce66b0cee9d5dd0d773d4 /lib/CodeGen/TwoAddressInstructionPass.cpp | |
parent | 0481449a0536311b5fefc9122ce679000540e013 (diff) | |
download | external_llvm-3ae56bcd8ab0b9cba006f772a623b81d4c7bfd7f.zip external_llvm-3ae56bcd8ab0b9cba006f772a623b81d4c7bfd7f.tar.gz external_llvm-3ae56bcd8ab0b9cba006f772a623b81d4c7bfd7f.tar.bz2 |
Code clean up.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103538 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/TwoAddressInstructionPass.cpp')
-rw-r--r-- | lib/CodeGen/TwoAddressInstructionPass.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/TwoAddressInstructionPass.cpp b/lib/CodeGen/TwoAddressInstructionPass.cpp index 5b892a8..bd24bab 100644 --- a/lib/CodeGen/TwoAddressInstructionPass.cpp +++ b/lib/CodeGen/TwoAddressInstructionPass.cpp @@ -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); } } |