[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)
commita495c6403b5348bc0243393ab5ee467983b3c8eb
tree697749812ce92630cd003a6521b3098508825c58
parent51f84f6bae537a1fdcd0ed869a087605807f54bf
[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.

llvm-svn: 355858
clang/lib/Sema/SemaOpenMP.cpp
clang/test/OpenMP/declare_target_link_codegen.cpp