[cfe-commits] r106668 - /cfe/trunk/lib/Parse/DeclSpec.cpp
Duncan Sands
baldrick at free.fr
Wed Jun 23 12:34:52 PDT 2010
Author: baldrick
Date: Wed Jun 23 14:34:52 2010
New Revision: 106668
URL: http://llvm.org/viewvc/llvm-project?rev=106668&view=rev
Log:
Add parentheses suggested by gcc.
Modified:
cfe/trunk/lib/Parse/DeclSpec.cpp
Modified: cfe/trunk/lib/Parse/DeclSpec.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Parse/DeclSpec.cpp?rev=106668&r1=106667&r2=106668&view=diff
==============================================================================
--- cfe/trunk/lib/Parse/DeclSpec.cpp (original)
+++ cfe/trunk/lib/Parse/DeclSpec.cpp Wed Jun 23 14:34:52 2010
@@ -452,8 +452,8 @@
}
// Only char/int are valid with vector bool. (PIM 2.1)
- if ((TypeSpecType != TST_unspecified) && (TypeSpecType != TST_char) &&
- (TypeSpecType != TST_int) || TypeAltiVecPixel) {
+ if (((TypeSpecType != TST_unspecified) && (TypeSpecType != TST_char) &&
+ (TypeSpecType != TST_int)) || TypeAltiVecPixel) {
Diag(D, TSTLoc, SrcMgr, diag::err_invalid_vector_bool_decl_spec)
<< (TypeAltiVecPixel ? "__pixel" :
getSpecifierName((TST)TypeSpecType));
More information about the cfe-commits
mailing list