r242797 - Add missing parentheses to appease -Wlogical-op-parentheses.
Daniel Jasper
djasper at google.com
Tue Jul 21 09:18:51 PDT 2015
Author: djasper
Date: Tue Jul 21 11:18:51 2015
New Revision: 242797
URL: http://llvm.org/viewvc/llvm-project?rev=242797&view=rev
Log:
Add missing parentheses to appease -Wlogical-op-parentheses.
Add missing case to appease -Wswitch.
Modified:
cfe/trunk/lib/Parse/ParseOpenMP.cpp
Modified: cfe/trunk/lib/Parse/ParseOpenMP.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Parse/ParseOpenMP.cpp?rev=242797&r1=242796&r2=242797&view=diff
==============================================================================
--- cfe/trunk/lib/Parse/ParseOpenMP.cpp (original)
+++ cfe/trunk/lib/Parse/ParseOpenMP.cpp Tue Jul 21 11:18:51 2015
@@ -64,9 +64,9 @@ static OpenMPDirectiveKind ParseOpenMPDi
if (!TokenIsAnnotation && SDKind == OMPD_unknown) {
TokenMatched =
- (i == 0) &&
- !P.getPreprocessor().getSpelling(Tok).compare("point") ||
- (i == 1) && !P.getPreprocessor().getSpelling(Tok).compare("data");
+ ((i == 0) &&
+ !P.getPreprocessor().getSpelling(Tok).compare("point")) ||
+ ((i == 1) && !P.getPreprocessor().getSpelling(Tok).compare("data"));
} else {
TokenMatched = SDKind == F[i][1] && SDKind != OMPD_unknown;
}
@@ -139,6 +139,8 @@ Parser::DeclGroupPtrTy Parser::ParseOpen
Diag(Tok, diag::err_omp_unexpected_directive)
<< getOpenMPDirectiveName(DKind);
break;
+ case OMPD_target_data:
+ break;
}
SkipUntil(tok::annot_pragma_openmp_end);
return DeclGroupPtrTy();
More information about the cfe-commits
mailing list