fix copy/paste/modify think-o

llvm-svn: 105653
This commit is contained in:
Jim Grosbach 2010-06-08 22:53:32 +00:00
parent 255fda615d
commit a21cfe3462

View File

@ -694,7 +694,7 @@ bool ARMLoadStoreOpt::MergeBaseUpdateLoadStore(MachineBasicBlock &MBB,
}
// Try merging with the next instruction.
MachineBasicBlock::iterator EndMBBI = MBB.begin();
MachineBasicBlock::iterator EndMBBI = MBB.end();
if (!DoMerge && MBBI != EndMBBI) {
MachineBasicBlock::iterator NextMBBI = llvm::next(MBBI);
while (NextMBBI != EndMBBI && NextMBBI->isDebugValue())