diff --git a/include/llvm/Target/TargetInstrInfo.h b/include/llvm/Target/TargetInstrInfo.h index 6151c439d9d..ae271d2f6cd 100644 --- a/include/llvm/Target/TargetInstrInfo.h +++ b/include/llvm/Target/TargetInstrInfo.h @@ -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];