[OPENMP]Fix PR46170: partial mapping for array sections of data members.
authorAlexey Bataev <a.bataev@hotmail.com>
Tue, 2 Jun 2020 18:26:28 +0000 (14:26 -0400)
committerAlexey Bataev <a.bataev@hotmail.com>
Wed, 3 Jun 2020 13:10:20 +0000 (09:10 -0400)
commit59e0987a068ca3842dd2b4ddf2edf001fb1de1b5
tree120c3972d7d3c45e6d687154aac8bbead61ba005
parentc1911fcb0664417cbf75b11315bdba39bd6d6390
[OPENMP]Fix PR46170: partial mapping for array sections of data members.

Summary:
If the data member is mapped as an array section, need to emit the
pointer to the last element of this array section and use this pointer
as the highest element in partial struct data.

Reviewers: jdoerfert

Subscribers: yaxunl, guansong, sstefan1, cfe-commits, caomhin

Tags: #clang

Differential Revision: https://reviews.llvm.org/D81037
clang/lib/CodeGen/CGOpenMPRuntime.cpp
clang/test/OpenMP/target_map_member_expr_array_section_codegen.cpp [new file with mode: 0644]