mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-26 13:10:42 +00:00
MakeMIInst() should handle jump table index operands.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27955 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
57a6c135f2
commit
49bca8536c
@ -151,6 +151,9 @@ static MachineInstr *MakeMIInst(unsigned Opcode, unsigned FrameIndex,
|
||||
return addFrameReference(BuildMI(Opcode, 5), FrameIndex)
|
||||
.addGlobalAddress(MI->getOperand(1).getGlobal(),
|
||||
false, MI->getOperand(1).getOffset());
|
||||
else if (MI->getOperand(1).isJumpTableIndex())
|
||||
return addFrameReference(BuildMI(Opcode, 5), FrameIndex)
|
||||
.addJumpTableIndex(MI->getOperand(1).getJumpTableIndex());
|
||||
assert(0 && "Unknown operand for MakeMI!");
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user