mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
TableGen: strengthen assert
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208679 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ae0a8337f2
commit
e9592d0838
@ -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…
Reference in New Issue
Block a user