diff --git a/lib/Target/X86/X86CodeEmitter.cpp b/lib/Target/X86/X86CodeEmitter.cpp index ca6c78df5ec..9e2c998e3f1 100644 --- a/lib/Target/X86/X86CodeEmitter.cpp +++ b/lib/Target/X86/X86CodeEmitter.cpp @@ -517,6 +517,9 @@ void Emitter::emitInstruction(const MachineInstr &MI) { else if (MI.getOperand(4).isGlobalAddress()) emitGlobalAddressForPtr(MI.getOperand(4).getGlobal(), MI.getOperand(4).getOffset()); + else if (MI.getOperand(4).isJumpTableIndex()) + emitConstant(MCE.getJumpTableEntryAddress(MI.getOperand(4) + .getJumpTableIndex()), 4); else assert(0 && "Unknown operand!"); }