aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/ARM/ARMBaseInstrInfo.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-01-25 23:22:00 +0000
committerChris Lattner <sabre@nondot.org>2010-01-25 23:22:00 +0000
commitb10c7e2e10bb899f1f48cd33195c68b31ecc2db0 (patch)
tree412cc06a54591dc6de7ddb73a3924a0ba39c934f /lib/Target/ARM/ARMBaseInstrInfo.cpp
parent32a2e71c13ee87cdbf8771e4958d30a178679e32 (diff)
downloadexternal_llvm-b10c7e2e10bb899f1f48cd33195c68b31ecc2db0.zip
external_llvm-b10c7e2e10bb899f1f48cd33195c68b31ecc2db0.tar.gz
external_llvm-b10c7e2e10bb899f1f48cd33195c68b31ecc2db0.tar.bz2
prep work to support a future where getJumpTableInfo will return
a null pointer for functions with no jump tables. No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94469 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMBaseInstrInfo.cpp')
-rw-r--r--lib/Target/ARM/ARMBaseInstrInfo.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMBaseInstrInfo.cpp b/lib/Target/ARM/ARMBaseInstrInfo.cpp
index fd46a4a..1e52211 100644
--- a/lib/Target/ARM/ARMBaseInstrInfo.cpp
+++ b/lib/Target/ARM/ARMBaseInstrInfo.cpp
@@ -490,6 +490,7 @@ unsigned ARMBaseInstrInfo::GetInstSizeInBytes(const MachineInstr *MI) const {
MI->getOperand(NumOps - (TID.isPredicable() ? 3 : 2));
unsigned JTI = JTOP.getIndex();
const MachineJumpTableInfo *MJTI = MF->getJumpTableInfo();
+ assert(MJTI != 0);
const std::vector<MachineJumpTableEntry> &JT = MJTI->getJumpTables();
assert(JTI < JT.size());
// Thumb instructions are 2 byte aligned, but JT entries are 4 byte