1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

X86 should ignore implicit regs when lowering to MCInst also,

no functionality change.

llvm-svn: 84567
This commit is contained in:
Chris Lattner 2009-10-19 23:35:57 +00:00
parent 8a38b12ffe
commit db0e4f883d

View File

@ -306,6 +306,8 @@ void X86MCInstLower::Lower(const MachineInstr *MI, MCInst &OutMI) const {
MI->dump();
llvm_unreachable("unknown operand type");
case MachineOperand::MO_Register:
// Ignore all implicit register operands.
if (MO.isImplicit()) continue;
MCOp = MCOperand::CreateReg(MO.getReg());
break;
case MachineOperand::MO_Immediate: