llvm-svn: 28851
This commit is contained in:
Evan Cheng 2006-06-17 01:42:20 +00:00
parent 25b04b4249
commit 6909286861

View File

@ -149,8 +149,7 @@ public:
const TargetRegisterClass
*getInstrOperandRegClass(const TargetInstrDescriptor *II, unsigned Op) const {
if (Op >= II->numOperands) {
if (!(II->Flags & M_VARIABLE_OPS))
assert(false && "Invalid operand # of instruction");
assert((II->Flags & M_VARIABLE_OPS)&& "Invalid operand # of instruction");
return NULL;
}
const TargetOperandInfo &toi = II->OpInfo[Op];