This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP] diagnose orphaned teams construct
ClosedPublic

Authored by kkwli0 on Jul 25 2016, 3:25 PM.

Details

Summary

The spec mandates that 'a teams construct must be contained within a target construct'. Currently, this scenario is not diagnosed. This patch is to add check for orphaned teams construct and issue an error message.

Diff Detail

Event Timeline

kkwli0 updated this revision to Diff 65430.Jul 25 2016, 3:25 PM
kkwli0 retitled this revision from to [OpenMP] diagnose orphaned teams construct.
kkwli0 updated this object.
kkwli0 added a subscriber: cfe-commits.
ABataev accepted this revision.Jul 25 2016, 8:00 PM
ABataev edited edge metadata.

LG with a nit

lib/Sema/SemaOpenMP.cpp
3360–3366

Please, enclose multiline sub-statements of 'if' statement into braces.

This revision is now accepted and ready to land.Jul 25 2016, 8:00 PM

Will add the braces. Thanks.

This revision was automatically updated to reflect the committed changes.