From 8fe3cc80551c141ea20a8e897109e0b5e11e90a6 Mon Sep 17 00:00:00 2001 From: Jim Grosbach Date: Tue, 8 Jun 2010 22:53:32 +0000 Subject: [PATCH] fix copy/paste/modify think-o llvm-svn: 105653 --- llvm/lib/Target/ARM/ARMLoadStoreOptimizer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Target/ARM/ARMLoadStoreOptimizer.cpp b/llvm/lib/Target/ARM/ARMLoadStoreOptimizer.cpp index f11575eacfe0..b39d44fb6f97 100644 --- a/llvm/lib/Target/ARM/ARMLoadStoreOptimizer.cpp +++ b/llvm/lib/Target/ARM/ARMLoadStoreOptimizer.cpp @@ -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())