[OPENMP] Captured arguments of the capturable clauses by value.
authorAlexey Bataev <a.bataev@hotmail.com>
Fri, 22 Dec 2017 21:01:52 +0000 (21:01 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Fri, 22 Dec 2017 21:01:52 +0000 (21:01 +0000)
commit8e769ee70b7b49208e7dde61b7f06cb58df1a380
tree439b0e7a09e037384909f9aef52e372067c2cefe
parent5cfffbc875de50d4b3f58b6ec9dbca99d50f0a80
[OPENMP] Captured arguments of the capturable clauses by value.

If the clause is applied to the combined construct and has captured
expression, try to capture this expression by value rather than by
reference.

llvm-svn: 321386
clang/lib/Sema/SemaOpenMP.cpp
clang/test/OpenMP/parallel_for_codegen.cpp
clang/test/OpenMP/teams_distribute_parallel_for_num_threads_codegen.cpp
clang/test/OpenMP/teams_distribute_parallel_for_simd_num_threads_codegen.cpp