Watch out for empty BB.

llvm-svn: 33788
This commit is contained in:
Evan Cheng 2007-02-02 18:49:02 +00:00
parent 583c90d4c2
commit 3ad22567b3
1 changed files with 1 additions and 0 deletions

View File

@ -352,6 +352,7 @@ void ARMConstantIslands::InitialFunctionScan(MachineFunction &Fn,
// In thumb mode, if this block is a constpool island, pessmisticly assume
// it needs to be padded by two byte so it's aligned on 4 byte boundary.
if (AFI->isThumbFunction() &&
MBB.size() &&
MBB.begin()->getOpcode() == ARM::CONSTPOOL_ENTRY)
MBBSize += 2;