mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Watch out for empty BB.
llvm-svn: 33788
This commit is contained in:
parent
ec5ab3241b
commit
6a428320d6
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user