r256501 - Silence enumeral and non-enumeral type in conditional expression warning; NFC.
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Mon Dec 28 07:52:47 PST 2015
Author: aaronballman
Date: Mon Dec 28 09:52:46 2015
New Revision: 256501
URL: http://llvm.org/viewvc/llvm-project?rev=256501&view=rev
Log:
Silence enumeral and non-enumeral type in conditional expression warning; NFC.
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=256501&r1=256500&r2=256501&view=diff
==============================================================================
--- cfe/trunk/lib/Parse/ParseOpenMP.cpp (original)
+++ cfe/trunk/lib/Parse/ParseOpenMP.cpp Mon Dec 28 09:52:46 2015
@@ -716,7 +716,7 @@ OMPClause *Parser::ParseOpenMPSingleExpr
Kind, Tok.isAnnotation() ? "" : PP.getSpelling(Tok));
Arg[Modifier2] = KindModifier > OMPC_SCHEDULE_unknown
? KindModifier
- : OMPC_SCHEDULE_unknown;
+ : (unsigned)OMPC_SCHEDULE_unknown;
KLoc[Modifier2] = Tok.getLocation();
if (Tok.isNot(tok::r_paren) && Tok.isNot(tok::comma) &&
Tok.isNot(tok::annot_pragma_openmp_end))
More information about the cfe-commits
mailing list