[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)
commitafe5057b591b0dd062f2ffc8cfcc30befd8bff46
tree405f52ff09ac2d81151af4096e1c979d813d4235
parent1fe643a6d766ee85e528681d42d5341859712a3e
[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.

llvm-svn: 315076
clang/lib/Sema/SemaOpenMP.cpp
clang/test/OpenMP/target_codegen.cpp