]> granicus.if.org Git - clang/commit
[OPENMP] Fix for PR27463: Privatizing struct fields with array type
authorAlexey Bataev <a.bataev@hotmail.com>
Fri, 22 Apr 2016 09:05:03 +0000 (09:05 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Fri, 22 Apr 2016 09:05:03 +0000 (09:05 +0000)
commitce75d4904d542d389ef578d1b5717ed31f7a9ff6
tree628239fa6d0c218d7c3317379c3dfc856c6ede87
parent9a54e817f1647da0bc9b16c691bc4388a4a99e12
[OPENMP] Fix for PR27463: Privatizing struct fields with array type
causes code generation failure.

The codegen part of firstprivate clause for member decls used type of
original variable without skipping reference type from
OMPCapturedExprDecl. Patch fixes this problem.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@267125 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGStmtOpenMP.cpp
test/OpenMP/parallel_firstprivate_codegen.cpp