Skip to content

Commit

Permalink
Fix gcc -Wparentheses warning.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208675 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
jayfoad committed May 13, 2014
1 parent 2a74dfe commit ae0a833
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils/TableGen/AsmWriterEmitter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,8 @@ 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 && "Idx out of range");
assert((PrintMethodIdx == -1 || PrintMethodIdx < 0xFF) &&
"Idx out of range");
OpMap[Op] = std::make_pair(OpIdx, PrintMethodIdx);
}

Expand Down

0 comments on commit ae0a833

Please sign in to comment.