]> granicus.if.org Git - clang/commit
[OPENMP] Do not mark local variables as declare target.
authorAlexey Bataev <a.bataev@hotmail.com>
Mon, 9 Jul 2018 19:58:08 +0000 (19:58 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Mon, 9 Jul 2018 19:58:08 +0000 (19:58 +0000)
commit500eccb77e6a768d61ce43490a3e1842466d75df
tree40139ea948a91443b9bca9b98ca9da7887a9f6da
parent7a9552d9f1a0e003326fa99215e050e75556127b
[OPENMP] Do not mark local variables as declare target.

When the parsing of the functions happens inside of the declare target
region, we may erroneously mark local variables as declare target
thought they are not. This attribute can be applied only to global
variables.

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