Skip to content

Commit 52492e6

Browse files
committed
[flang][NFC] Fix gcc 9 warning in omp combined construct checks.
1 parent 3c9c9c1 commit 52492e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flang/lib/Semantics/check-omp-structure.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ void OmpStructureChecker::Enter(const parser::OpenMPLoopConstruct &x) {
261261
case parser::OmpLoopDirective::Directive::TaskloopSimd: {
262262
PushContext(beginDir.source, OmpDirective::TASKLOOP_SIMD);
263263
SetContextAllowed(
264-
taskloopAllowedClauses | simdAllowedClauses - OmpClause::REDUCTION);
264+
(taskloopAllowedClauses | simdAllowedClauses) - OmpClause::REDUCTION);
265265
SetContextAllowedOnce(taskloopAllowedOnceClauses | simdAllowedOnceClauses);
266266
SetContextAllowedExclusive(taskloopAllowedExclusiveClauses);
267267
} break;

0 commit comments

Comments
 (0)