prep work to support a future where getJumpTableInfo will return
[oota-llvm.git] / lib / Target / ARM / ARMBaseInstrInfo.cpp
index fd46a4a8c5499445070bbbda2980fa239005326c..1e52211521cce55695ae30eb8bb96ddd18bb4776 100644 (file)
@@ -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