[TableGen] Don't assert, produce an error, when an instruction has too few operands
authorHal Finkel <hfinkel@anl.gov>
Sat, 22 Mar 2014 11:33:32 +0000 (11:33 +0000)
committerHal Finkel <hfinkel@anl.gov>
Sat, 22 Mar 2014 11:33:32 +0000 (11:33 +0000)
commitf20a2199de396f13dae02512944c4f24b7b2b77c
treead7d380f1c32b8b6b314b4b2929cabe9c70a0425
parent4e669c9278951b0531edccd2c6f8d45854c2cee7
[TableGen] Don't assert, produce an error, when an instruction has too few operands

When an instruction's operand list does not have a sufficient number of
operands to match with all of the variables that contribute to its
encoding, instead of asserting inside a call to getSubOperandNumber, produce an
informative error.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204542 91177308-0d34-0410-b5e6-96231b3b80d8
utils/TableGen/CodeEmitterGen.cpp