This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP] Fix data sharing analysis in nested clause
ClosedPublic

Authored by jdenny on Dec 18 2018, 3:41 PM.

Details

Summary

Without this patch, clang doesn't complain that X needs explicit data
sharing attributes in the following:

#pragma omp target teams default(none)
{
  #pragma omp parallel num_threads(X)
    ;
}

However, clang does produce that complaint after the braces are
removed. With this patch, clang complains in both cases.

Diff Detail

Event Timeline

jdenny created this revision.Dec 18 2018, 3:41 PM
This revision is now accepted and ready to land.Dec 19 2018, 6:34 AM
This revision was automatically updated to reflect the committed changes.