diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-02-02 18:49:02 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-02-02 18:49:02 +0000 |
commit | 1dd6a606ad59847164ef92ba82d533dc645f134c (patch) | |
tree | c49a5bcda59d804d360f54d3418e796472b4a33f | |
parent | bd70c0b06e5c96c5149f4b28eef7832b00516d32 (diff) |
Watch out for empty BB.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33788 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/ARM/ARMConstantIslandPass.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMConstantIslandPass.cpp b/lib/Target/ARM/ARMConstantIslandPass.cpp index 35066faf55..89c32aa293 100644 --- a/lib/Target/ARM/ARMConstantIslandPass.cpp +++ b/lib/Target/ARM/ARMConstantIslandPass.cpp @@ -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; |