Skip to content

Commit

Permalink
TableGen: strengthen assert
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208679 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
TNorthover committed May 13, 2014
1 parent ae0a833 commit e9592d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/TableGen/AsmWriterEmitter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ class IAPrinter {

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);
}
Expand Down

0 comments on commit e9592d0

Please sign in to comment.