[OPENMP] Do not capture private loop counters.
authorAlexey Bataev <a.bataev@hotmail.com>
Mon, 29 Oct 2018 15:01:58 +0000 (15:01 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Mon, 29 Oct 2018 15:01:58 +0000 (15:01 +0000)
commit6ab5bb115a3491e799dfe00da39136f02247c251
tree3d8dd63d655cbda273934e4b09281b24a104c384
parentd7bca00ab0094918b9fd8674f4ac1d3cf6741b4e
[OPENMP] Do not capture private loop counters.

If the loop counter is not declared in the context of the loop and it is
private, such loop counters should not be captured in the outlined
regions.

llvm-svn: 345505
clang/include/clang/Parse/Parser.h
clang/include/clang/Sema/Sema.h
clang/lib/CodeGen/CGStmtOpenMP.cpp
clang/lib/Sema/SemaOpenMP.cpp
clang/test/OpenMP/debug-info-openmp-array.cpp
clang/test/OpenMP/parallel_for_codegen.cpp
clang/test/OpenMP/taskloop_codegen.cpp
clang/test/OpenMP/taskloop_firstprivate_messages.cpp
clang/test/OpenMP/taskloop_reduction_codegen.cpp
clang/test/OpenMP/taskloop_simd_firstprivate_messages.cpp