]> granicus.if.org Git - clang/commitdiff
Add parentheses suggested by gcc.
authorDuncan Sands <baldrick@free.fr>
Wed, 23 Jun 2010 19:34:52 +0000 (19:34 +0000)
committerDuncan Sands <baldrick@free.fr>
Wed, 23 Jun 2010 19:34:52 +0000 (19:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@106668 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Parse/DeclSpec.cpp

index 2f328b0e65eda6fffacf55a26b1bf112d498b67c..d2cd74418af00d0bbbcd79e0b5db32a9c87938e2 100644 (file)
@@ -452,8 +452,8 @@ void DeclSpec::Finish(Diagnostic &D, Preprocessor &PP) {
       }
 
       // 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));