[OPENMP]Fix sharing of threadprivate variables with TLS support.
authorAlexey Bataev <a.bataev@hotmail.com>
Thu, 18 Jul 2019 19:40:24 +0000 (19:40 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Thu, 18 Jul 2019 19:40:24 +0000 (19:40 +0000)
commit0c99d19470bab02158856ac88dc1cc0fb40a4570
tree8a0549773668260d42a8520de108e6eed7e1c337
parent892758a52651f335ae4cd5f79bcb4f2c2e119e81
[OPENMP]Fix sharing of threadprivate variables with TLS support.

If the threadprivate variable is used in the copyin clause on inner
parallel directive with TLS support, we capture this variable in all
outer OpenMP scopes. It leads to the fact that in all scopes we're
working with the original variable, not the threadprivate copies.

llvm-svn: 366483
clang/lib/Sema/SemaOpenMP.cpp
clang/test/OpenMP/parallel_copyin_codegen.cpp