[OPENMP]Do not capture global marked as shared in OpenMP region.
authorAlexey Bataev <a.bataev@hotmail.com>
Tue, 7 Apr 2020 21:14:59 +0000 (17:14 -0400)
committerAlexey Bataev <a.bataev@hotmail.com>
Tue, 7 Apr 2020 21:33:17 +0000 (17:33 -0400)
commitdbe86786f7f19c3f1338437f4275797e08501efd
tree5f8efe745b1694f41c9fe0d97a76286aad42fc5c
parentb49eac71ad76cd8ee3771745ff591ee8771eab1b
[OPENMP]Do not capture global marked as shared in OpenMP region.

No need to capture the global variable marked as shared in the OpenMP
region, the original variable can be used.
clang/lib/Sema/SemaOpenMP.cpp
clang/test/OpenMP/parallel_codegen.cpp