[flang-commits] [flang] 8f8b436 - [flang][OpenMP] Silence warning in openmp-parsers.cpp
Krzysztof Parzyszek via flang-commits
flang-commits at lists.llvm.org
Thu Jul 24 08:04:22 PDT 2025
Author: Krzysztof Parzyszek
Date: 2025-07-24T10:04:11-05:00
New Revision: 8f8b436c2b914a8abcee12b8a3bf45aec9fa627e
URL: https://github.com/llvm/llvm-project/commit/8f8b436c2b914a8abcee12b8a3bf45aec9fa627e
DIFF: https://github.com/llvm/llvm-project/commit/8f8b436c2b914a8abcee12b8a3bf45aec9fa627e.diff
LOG: [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 >=
| ^~
Added:
Modified:
flang/lib/Parser/openmp-parsers.cpp
Removed:
################################################################################
diff --git a/flang/lib/Parser/openmp-parsers.cpp b/flang/lib/Parser/openmp-parsers.cpp
index 191c555a48a02..25a692deba3cc 100644
--- a/flang/lib/Parser/openmp-parsers.cpp
+++ b/flang/lib/Parser/openmp-parsers.cpp
@@ -1627,7 +1627,7 @@ static constexpr auto StandaloneDirectiveLookahead{//
"TARGET UPDATE"_sptok || "TARGET_UPDATE"_sptok};
// Directives enclosing structured-block
-TYPE_PARSER(!StandaloneDirectiveLookahead >=
+TYPE_PARSER((!StandaloneDirectiveLookahead) >=
construct<OmpBlockDirective>(first(
"MASKED" >> pure(llvm::omp::Directive::OMPD_masked),
"MASTER" >> pure(llvm::omp::Directive::OMPD_master),
More information about the flang-commits
mailing list