[clang] [clang][OpenMP] Fix/enforce order-concurrent-nestable rules (PR #135463)
Ernesto Su via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 15 09:31:49 PDT 2025
================
@@ -7132,7 +7118,7 @@ ExprResult SemaOpenMP::ActOnOpenMPCall(ExprResult Call, Scope *Scope,
if (!CalleeFnDecl)
return Call;
- if (getLangOpts().OpenMP >= 51 && getLangOpts().OpenMP < 60 &&
+ if (getLangOpts().OpenMP >= 50 && getLangOpts().OpenMP <= 60 &&
----------------
ErnestoSu wrote:
OpenMP 5.0 and 6.0 also have the same restrictions as 5.1 and 5.2 w.r.t. OpenMP runtime APIs (e.g., `omp_get_thread_num()`) inside a construct specified with the `order(concurrent)` clause.
https://github.com/llvm/llvm-project/pull/135463
More information about the cfe-commits
mailing list