forked from OSchip/llvm-project
Silence GCC warning for using both enum and unsigned in a ternary expr.
llvm-svn: 186762
This commit is contained in:
parent
08e5070bf5
commit
a3d5304ec0
|
@ -303,7 +303,7 @@ OMPClause *Parser::ParseOpenMPSimpleClause(OpenMPClauseKind Kind) {
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
unsigned Type = Tok.isAnnotation() ?
|
unsigned Type = Tok.isAnnotation() ?
|
||||||
OMPC_DEFAULT_unknown :
|
unsigned(OMPC_DEFAULT_unknown) :
|
||||||
getOpenMPSimpleClauseType(Kind, PP.getSpelling(Tok));
|
getOpenMPSimpleClauseType(Kind, PP.getSpelling(Tok));
|
||||||
SourceLocation TypeLoc = Tok.getLocation();
|
SourceLocation TypeLoc = Tok.getLocation();
|
||||||
if (Tok.isNot(tok::r_paren) && Tok.isNot(tok::comma) &&
|
if (Tok.isNot(tok::r_paren) && Tok.isNot(tok::comma) &&
|
||||||
|
|
Loading…
Reference in New Issue