projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c9c9c1
)
[flang][NFC] Fix gcc 9 warning in omp combined construct checks.
author
David Truby
<david.truby@arm.com>
Mon, 27 Apr 2020 16:56:41 +0000
(17:56 +0100)
committer
David Truby
<david.truby@arm.com>
Mon, 27 Apr 2020 16:59:06 +0000
(17:59 +0100)
flang/lib/Semantics/check-omp-structure.cpp
patch
|
blob
|
history
diff --git
a/flang/lib/Semantics/check-omp-structure.cpp
b/flang/lib/Semantics/check-omp-structure.cpp
index
9a1c656
..
7731273
100644
(file)
--- a/
flang/lib/Semantics/check-omp-structure.cpp
+++ b/
flang/lib/Semantics/check-omp-structure.cpp
@@
-261,7
+261,7
@@
void OmpStructureChecker::Enter(const parser::OpenMPLoopConstruct &x) {
case parser::OmpLoopDirective::Directive::TaskloopSimd: {
PushContext(beginDir.source, OmpDirective::TASKLOOP_SIMD);
SetContextAllowed(
-
taskloopAllowedClauses | simdAllowedClauses
- OmpClause::REDUCTION);
+
(taskloopAllowedClauses | simdAllowedClauses)
- OmpClause::REDUCTION);
SetContextAllowedOnce(taskloopAllowedOnceClauses | simdAllowedOnceClauses);
SetContextAllowedExclusive(taskloopAllowedExclusiveClauses);
} break;