[PATCH] D81037: [OPENMP]Fix PR46170: partial mapping for array sections of data members.

Alexey Bataev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 2 15:23:33 PDT 2020


ABataev created this revision.
ABataev added a reviewer: jdoerfert.
Herald added subscribers: sstefan1, guansong, yaxunl.
Herald added a project: clang.
jdoerfert accepted this revision.
jdoerfert added a comment.
This revision is now accepted and ready to land.

LGTM. Thanks for the quick fix!


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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D81037

Files:
  clang/lib/CodeGen/CGOpenMPRuntime.cpp
  clang/test/OpenMP/target_map_member_expr_array_section_codegen.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81037.267998.patch
Type: text/x-patch
Size: 8937 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200602/31ecc0d3/attachment-0001.bin>


More information about the cfe-commits mailing list