[llvm] r208675 - Fix gcc -Wparentheses warning.
Jay Foad
jay.foad at gmail.com
Tue May 13 01:26:54 PDT 2014
Author: foad
Date: Tue May 13 03:26:53 2014
New Revision: 208675
URL: http://llvm.org/viewvc/llvm-project?rev=208675&view=rev
Log:
Fix gcc -Wparentheses warning.
Modified:
llvm/trunk/utils/TableGen/AsmWriterEmitter.cpp
Modified: llvm/trunk/utils/TableGen/AsmWriterEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/AsmWriterEmitter.cpp?rev=208675&r1=208674&r2=208675&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/AsmWriterEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/AsmWriterEmitter.cpp Tue May 13 03:26:53 2014
@@ -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);
}
More information about the llvm-commits
mailing list