TableGen: strengthen assert

llvm-svn: 208679
This commit is contained in:
Tim Northover 2014-05-13 09:37:41 +00:00
parent b23e7b4f97
commit d58954eabf

View File

@ -642,7 +642,7 @@ public:
void addOperand(StringRef Op, int OpIdx, int PrintMethodIdx = -1) {
assert(OpIdx >= 0 && OpIdx < 0xFE && "Idx out of range");
assert((PrintMethodIdx == -1 || PrintMethodIdx < 0xFF) &&
assert(PrintMethodIdx >= -1 && PrintMethodIdx < 0xFF &&
"Idx out of range");
OpMap[Op] = std::make_pair(OpIdx, PrintMethodIdx);
}