[all-commits] [llvm/llvm-project] e06363: [flang][OpenMP] Verify uses of OmpCancellationCons...

Krzysztof Parzyszek via All-commits all-commits at lists.llvm.org
Wed May 14 05:07:37 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e06363f80f95b53a433762d0561741277521241e
      https://github.com/llvm/llvm-project/commit/e06363f80f95b53a433762d0561741277521241e
  Author: Krzysztof Parzyszek <Krzysztof.Parzyszek at amd.com>
  Date:   2025-05-14 (Wed, 14 May 2025)

  Changed paths:
    M flang/lib/Parser/openmp-parsers.cpp
    M flang/lib/Semantics/check-omp-structure.cpp
    A flang/test/Semantics/OpenMP/cancellation-construct-type.f90

  Log Message:
  -----------
  [flang][OpenMP] Verify uses of OmpCancellationConstructTypeClause (#139743)

Some directive names can be used as clauses, for example in "cancel". In
case where a directive name is misplaced, it could be interpreted as a
clause.

Verify that such uses are valid, and emit a diagnostic message if not.

Fixes https://github.com/llvm/llvm-project/issues/138224



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list