From 22f71315df28151639f5d2804844758cfdf5b72a Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Wed, 21 Jun 2006 23:37:07 +0000 Subject: [PATCH] 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 --- lib/Target/X86/X86CodeEmitter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Target/X86/X86CodeEmitter.cpp b/lib/Target/X86/X86CodeEmitter.cpp index dd5efaa1133..d1a21ed277e 100644 --- a/lib/Target/X86/X86CodeEmitter.cpp +++ b/lib/Target/X86/X86CodeEmitter.cpp @@ -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());