[flang-commits] [flang] [Flang][OpenMP] Add some semantic checks for Linear clause (PR #111354)

Kiran Chandramohan via flang-commits flang-commits at lists.llvm.org
Mon Oct 7 09:35:23 PDT 2024


================
@@ -2975,16 +3000,101 @@ void OmpStructureChecker::Enter(const parser::OmpClause::If &x) {
 void OmpStructureChecker::Enter(const parser::OmpClause::Linear &x) {
   CheckAllowedClause(llvm::omp::Clause::OMPC_linear);
 
+  parser::CharBlock source = GetContext().clauseSource;
----------------
kiranchandramohan wrote:

Use braced initialized in frontend code.

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


More information about the flang-commits mailing list