[flang-commits] [flang] [llvm] [flang][OpenMP] Move clause validity checks into OpenMP-specific code (PR #205607)

Krzysztof Parzyszek via flang-commits flang-commits at lists.llvm.org
Thu Jun 25 05:14:16 PDT 2026


================
@@ -370,7 +370,12 @@ bool OmpStructureChecker::IsAllowedClause(llvm::omp::Clause clauseId) {
       GetContext().directive, clauseId, context_.langOptions().OpenMPVersion);
 }
 
-bool OmpStructureChecker::CheckAllowedClause(llvm::omp::Clause clause) {
+bool OmpStructureChecker::CheckAllowedClause(llvm::omp::Clause clauseId) {
+  return true;
----------------
kparzysz wrote:

This is now just a stub, but this function is called from a lot of places, so left it in place to avoid extra clutter.

https://github.com/llvm/llvm-project/pull/205607


More information about the flang-commits mailing list