variable_ops instructions such as call can have any number of operands.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28906 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Evan Cheng 2006-06-21 23:37:07 +00:00
parent 72a8e6f58c
commit 22f71315df

View File

@ -408,7 +408,7 @@ void Emitter::emitInstruction(const MachineInstr &MI) {
case X86II::RawFrm:
MCE.emitByte(BaseOpcode);
if (MI.getNumOperands() == 1) {
if (Desc.numOperands == 1) {
const MachineOperand &MO = MI.getOperand(0);
if (MO.isMachineBasicBlock()) {
emitPCRelativeBlockAddress(MO.getMachineBasicBlock());