mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-24 04:45:00 +00:00
TableGen: strengthen assert
llvm-svn: 208679
This commit is contained in:
parent
b23e7b4f97
commit
d58954eabf
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user