[OPENMP] Do not capture private variables in the target regions.
authorAlexey Bataev <a.bataev@hotmail.com>
Thu, 7 Dec 2017 19:49:28 +0000 (19:49 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Thu, 7 Dec 2017 19:49:28 +0000 (19:49 +0000)
commit8cf35e46831800cf173935fbb8fb2285c690902e
treeaf621a839275f730662741eaaa6d4e9fcabc477e
parent6c96486962094e589cc8fae0bd55784f9f711df1
[OPENMP] Do not capture private variables in the target regions.

Private variables are completely redefined in the outlined regions, so
we don't need to capture them. Patch adds this behavior to the
target-based regions.

llvm-svn: 320078
clang/lib/Sema/SemaExpr.cpp
clang/test/OpenMP/teams_distribute_parallel_for_private_codegen.cpp
clang/test/OpenMP/teams_distribute_parallel_for_simd_private_codegen.cpp
clang/test/OpenMP/teams_distribute_private_codegen.cpp
clang/test/OpenMP/teams_distribute_simd_private_codegen.cpp
clang/test/OpenMP/teams_private_codegen.cpp