HomePhabricator

[Flang][OpenMP] Fix issue in only a single nowait clause can appear on a…

Authored by sameeranjoshi on Oct 14 2020, 2:52 AM.

Description

[Flang][OpenMP] Fix issue in only a single nowait clause can appear on a sections directive.

The OpenMP 5.0 standard restricts nowait clause to appear only once on sections
directive.
See OpenMP 5.0

  • 2.8.1
  • point 3 in restrictions.

Added a test with fix.

Reviewed By: DavidTruby

Differential Revision: https://reviews.llvm.org/D88556