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 | 5bb93ce7697210356ba5f11ae286bfbc827755c5 (patch) | |
| tree | 2163596a5f6f28f432955a957075e23a3ed902d1 /llvm | |
| parent | 8a640ae50463f27f26221d212c268bddc0af7045 (diff) | |
| download | bcm5719-llvm-5bb93ce7697210356ba5f11ae286bfbc827755c5.tar.gz bcm5719-llvm-5bb93ce7697210356ba5f11ae286bfbc827755c5.zip | |
Watch out for empty BB.
llvm-svn: 78562
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/Target/ARM/Thumb2SizeReduction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/Thumb2SizeReduction.cpp b/llvm/lib/Target/ARM/Thumb2SizeReduction.cpp index 9a56f2fe86c..e3b29a4fb86 100644 --- a/llvm/lib/Target/ARM/Thumb2SizeReduction.cpp +++ b/llvm/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); |

