Fix gcc -Wparentheses warning.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208675 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jay Foad 2014-05-13 08:26:53 +00:00
parent 2a74dfe388
commit ae0a8337f2

View File

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