variable_ops instructions such as call can have any number of operands.
authorEvan Cheng <evan.cheng@apple.com>
Wed, 21 Jun 2006 23:37:07 +0000 (23:37 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Wed, 21 Jun 2006 23:37:07 +0000 (23:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28906 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86CodeEmitter.cpp

index dd5efaa1133ca6d605c4d3f6e2b5bac44c0ed14b..d1a21ed277ec04c1868c3a20e16e8cb18bbe4de3 100644 (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());