[flang-commits] [flang] 52492e6 - [flang][NFC] Fix gcc 9 warning in omp combined construct checks.

David Truby via flang-commits flang-commits at lists.llvm.org
Mon Apr 27 09:59:18 PDT 2020


Author: David Truby
Date: 2020-04-27T17:59:06+01:00
New Revision: 52492e6c430aa47836d28d7811961a1eb377ec49

URL: https://github.com/llvm/llvm-project/commit/52492e6c430aa47836d28d7811961a1eb377ec49
DIFF: https://github.com/llvm/llvm-project/commit/52492e6c430aa47836d28d7811961a1eb377ec49.diff

LOG: [flang][NFC] Fix gcc 9 warning in omp combined construct checks.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/flang/lib/Semantics/check-omp-structure.cpp b/flang/lib/Semantics/check-omp-structure.cpp
index 9a1c656afb97..77312733cd2e 100644
--- 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;


        


More information about the flang-commits mailing list