]> granicus.if.org Git - clang/commit
[OPENMP]Fix codegen for declare target link in target regions.
authorAlexey Bataev <a.bataev@hotmail.com>
Mon, 11 Mar 2019 19:51:42 +0000 (19:51 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Mon, 11 Mar 2019 19:51:42 +0000 (19:51 +0000)
commita695513ed785db7b96306d5979b3eb7bdd385998
tree9e2f31dfa676ece6f5468795f39ae84050a24a23
parent370e7be0099c9bf8d101edaa7736bff7a0593e95
[OPENMP]Fix codegen for declare target link in target regions.

If the declare target link global is used in the target region
indirectly (used in the inner parallel, teams, etc. regions), we may
miss this variable and it leads to incorrect codegen.

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