[OPENMP] Allow value of thread local variables in target regions.
authorAlexey Bataev <a.bataev@hotmail.com>
Wed, 24 May 2017 16:00:02 +0000 (16:00 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Wed, 24 May 2017 16:00:02 +0000 (16:00 +0000)
commit979966fcd89b86e4df729412972d38bc5386bf8e
treefcfcf2723843799edabe7e420d65ba5ae3c6c815
parentd20066cbad18a04fa7e183078edb544994cd40e0
[OPENMP] Allow value of thread local variables in target regions.

If the variable is marked as TLS variable and target device does not
support TLS, the error is emitted for the variable even if it is not
used in target regions. Patch fixes this and allows to use the values of
the TLS variables in target regions.

llvm-svn: 303768
clang/lib/Sema/SemaDecl.cpp
clang/test/OpenMP/nvptx_target_codegen.cpp