Add parentheses suggested by gcc.

llvm-svn: 106668
This commit is contained in:
Duncan Sands 2010-06-23 19:34:52 +00:00
parent d448c1ba04
commit d3e231eb3c
1 changed files with 2 additions and 2 deletions

View 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));