]> granicus.if.org Git - clang/commit
[OpenMP] Fix data sharing analysis in nested clause
authorJoel E. Denny <jdenny.ornl@gmail.com>
Wed, 19 Dec 2018 15:59:47 +0000 (15:59 +0000)
committerJoel E. Denny <jdenny.ornl@gmail.com>
Wed, 19 Dec 2018 15:59:47 +0000 (15:59 +0000)
commit774a696710935afdbfde96f2f79f77aab2d1e9e5
tree3135cb3f9ff0ece123bd270489219cb72405b413
parent2d4a825aa47df7c19caabef365c2ca0c1f3903f7
[OpenMP] Fix data sharing analysis in nested clause

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.

Reviewed By: ABataev

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@349635 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaOpenMP.cpp
test/OpenMP/target_teams_messages.cpp