[PATCH] D105562: [OPENMP]Fix overlapped mapping for dereferenced pointer members.
Alexey Bataev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 7 10:33:44 PDT 2021
ABataev created this revision.
ABataev added reviewers: jdoerfert, mikerice, abhinavgaba.
Herald added subscribers: guansong, yaxunl.
ABataev requested review of this revision.
Herald added a subscriber: sstefan1.
Herald added a project: clang.
If the base is used in a map clause and later we have a memberexpr with
this base, and the member is a pointer, and this pointer is dereferenced
anyhow (subscript, array section, dereference, etc.), such components
should be considered as overlapped, otherwise it may lead to incorrect
size computations, since we try to map a pointee as a part of the whole
struct, which is not true for the pointer members.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D105562
Files:
clang/lib/CodeGen/CGOpenMPRuntime.cpp
clang/test/OpenMP/target_map_codegen_29.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D105562.356994.patch
Type: text/x-patch
Size: 12154 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210707/c5329dba/attachment.bin>
More information about the cfe-commits
mailing list