Skip to content

Commit 8f8b436

Browse files
committed
[flang][OpenMP] Silence warning in openmp-parsers.cpp
flang/lib/Parser/openmp-parsers.cpp:1655:43: warning : logical not is only applied to the left hand side of comparison [-Wlogical-not -parentheses] 1655 | TYPE_PARSER(!StandaloneDirectiveLookahead >= | ^~
1 parent d82d502 commit 8f8b436

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flang/lib/Parser/openmp-parsers.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1627,7 +1627,7 @@ static constexpr auto StandaloneDirectiveLookahead{//
16271627
"TARGET UPDATE"_sptok || "TARGET_UPDATE"_sptok};
16281628

16291629
// Directives enclosing structured-block
1630-
TYPE_PARSER(!StandaloneDirectiveLookahead >=
1630+
TYPE_PARSER((!StandaloneDirectiveLookahead) >=
16311631
construct<OmpBlockDirective>(first(
16321632
"MASKED" >> pure(llvm::omp::Directive::OMPD_masked),
16331633
"MASTER" >> pure(llvm::omp::Directive::OMPD_master),

0 commit comments

Comments
 (0)