diff options
author | Evan Cheng <evan.cheng@apple.com> | 2009-08-10 08:10:13 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2009-08-10 08:10:13 +0000 |
commit | 65f2e7887a8b70b3ee63ef535a6bcfe8a170c074 (patch) | |
tree | b637782ea3b990d3fea2b4333185c678c7d99e0a | |
parent | 8442d00a0ea750200b34a7fa94b5b72033da65b3 (diff) |
Watch out for empty BB.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78562 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/ARM/Thumb2SizeReduction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |