Variable ops instructions may ignore the last few operands for code emission.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30134 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Evan Cheng 2006-09-06 20:24:14 +00:00
parent c1e6e138e3
commit 3530bafe00

View File

@ -526,5 +526,7 @@ void Emitter::emitInstruction(const MachineInstr &MI) {
++CurOp;
break;
}
assert(CurOp == MI.getNumOperands() && "Unknown encoding!");
if ((Desc.Flags & M_VARIABLE_OPS) == 0)
assert(CurOp == MI.getNumOperands() && "Unknown encoding!");
}