]> granicus.if.org Git - clang/commit
[OPENMP] Do not capture local static variables.
authorAlexey Bataev <a.bataev@hotmail.com>
Fri, 6 Oct 2017 17:00:28 +0000 (17:00 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Fri, 6 Oct 2017 17:00:28 +0000 (17:00 +0000)
commitac3c06e8809ffd09fe7ed111b7a77f7da7ef4441
tree5be1c5259530073b0975d93a31ef472f0aa1a89c
parent2d90907990de40ed3f08b472edfccce20ac14a1c
[OPENMP] Do not capture local static variables.

Previously we may erroneously try to capture locally declared static
variables, which will lead to crash for target-based constructs.
Patch fixes this problem.

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