diff --git a/utils/TableGen/InstrInfoEmitter.cpp b/utils/TableGen/InstrInfoEmitter.cpp index 64629b4863c..2b2a81c1f34 100644 --- a/utils/TableGen/InstrInfoEmitter.cpp +++ b/utils/TableGen/InstrInfoEmitter.cpp @@ -102,7 +102,7 @@ void InstrInfoEmitter::emitRecord(const CodeGenInstruction &Inst, unsigned Num, OS << Inst.TheDef->getName(); else OS << Inst.Name; - OS << "\",\t-1, -1, 0, false, 0, 0, 0, 0"; + OS << "\",\t" << Inst.OperandList.size() << ", -1, 0, false, 0, 0, 0, 0"; // Emit all of the target indepedent flags... if (Inst.isReturn) OS << "|M_RET_FLAG";