[OPENMP] Fix for PR31137: Wrong DSA for members in struct.
authorAlexey Bataev <a.bataev@hotmail.com>
Mon, 28 Nov 2016 15:55:15 +0000 (15:55 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Mon, 28 Nov 2016 15:55:15 +0000 (15:55 +0000)
commit7fcacd8e0e9fd5dc937da96c77b7b2239e022f69
tree88ff5a05f936987ec8a94178ed879b5b292e01c3
parent6ec13991f583d72713528907d0561c14e4872b31
[OPENMP] Fix for PR31137: Wrong DSA for members in struct.

If member expression is used in the task region and the base expression
is a DeclRefExp and the variable used in this ref expression is private,
it should be marked as implicitly firstprivate inside this region. Patch
fixes this issue.

llvm-svn: 288039
clang/lib/Sema/SemaOpenMP.cpp
clang/test/OpenMP/task_firstprivate_codegen.cpp