[llvm-commits] [llvm] r78562 - /llvm/trunk/lib/Target/ARM/Thumb2SizeReduction.cpp
Evan Cheng
evan.cheng at apple.com
Mon Aug 10 01:10:14 PDT 2009
Author: evancheng
Date: Mon Aug 10 03:10:13 2009
New Revision: 78562
URL: http://llvm.org/viewvc/llvm-project?rev=78562&view=rev
Log:
Watch out for empty BB.
Modified:
llvm/trunk/lib/Target/ARM/Thumb2SizeReduction.cpp
Modified: llvm/trunk/lib/Target/ARM/Thumb2SizeReduction.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/Thumb2SizeReduction.cpp?rev=78562&r1=78561&r2=78562&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/Thumb2SizeReduction.cpp (original)
+++ llvm/trunk/lib/Target/ARM/Thumb2SizeReduction.cpp Mon Aug 10 03:10:13 2009
@@ -343,7 +343,7 @@
}
MachineBasicBlock::iterator MII = MBB.begin(), E = MBB.end();
- MachineBasicBlock::iterator NextMII = next(MII);
+ MachineBasicBlock::iterator NextMII;
for (; MII != E; MII = NextMII) {
NextMII = next(MII);
More information about the llvm-commits
mailing list