diff options
author | Jay Foad <jay.foad@gmail.com> | 2014-05-13 08:26:53 +0000 |
---|---|---|
committer | Jay Foad <jay.foad@gmail.com> | 2014-05-13 08:26:53 +0000 |
commit | ae0a8337f290bf734cb7287d150c43dbfd2be1c7 (patch) | |
tree | 6ad076fb8eae99d5fa520b5d5022c5f46bda4a71 /utils | |
parent | 2a74dfe388f8c1bedb32b3664c7b288fcc335833 (diff) |
Fix gcc -Wparentheses warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208675 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r-- | utils/TableGen/AsmWriterEmitter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/TableGen/AsmWriterEmitter.cpp b/utils/TableGen/AsmWriterEmitter.cpp index de389c1283d..222faa93d96 100644 --- a/utils/TableGen/AsmWriterEmitter.cpp +++ b/utils/TableGen/AsmWriterEmitter.cpp @@ -642,7 +642,8 @@ public: 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); } |