From 56634756463eda355e2841cac0d39f110e94a47b Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Mon, 10 Aug 2009 08:10:13 +0000 Subject: [PATCH] Watch out for empty BB. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78562 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/ARM/Thumb2SizeReduction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Target/ARM/Thumb2SizeReduction.cpp b/lib/Target/ARM/Thumb2SizeReduction.cpp index 9a56f2fe86..e3b29a4fb8 100644 --- a/lib/Target/ARM/Thumb2SizeReduction.cpp +++ b/lib/Target/ARM/Thumb2SizeReduction.cpp @@ -343,7 +343,7 @@ bool Thumb2SizeReduce::ReduceMBB(MachineBasicBlock &MBB) { } MachineBasicBlock::iterator MII = MBB.begin(), E = MBB.end(); - MachineBasicBlock::iterator NextMII = next(MII); + MachineBasicBlock::iterator NextMII; for (; MII != E; MII = NextMII) { NextMII = next(MII); -- 2.11.4.GIT