[Clang][OpenMP] Fix the issue that list items in `has_device_addr` are still mapped...
authorShilei Tian <i@tianshilei.me>
Fri, 26 May 2023 00:18:47 +0000 (20:18 -0400)
committerShilei Tian <i@tianshilei.me>
Fri, 26 May 2023 00:19:07 +0000 (20:19 -0400)
commitb8e3077d60de73ddcb1511a68af3fdd37fe81cf7
tree09efc188c6ac2d0296bffb97647a9fc12e70c45a
parent4311246a3a31687f94b519de322c63998bcff3be
[Clang][OpenMP] Fix the issue that list items in `has_device_addr` are still mapped to the target device

This patch fixes the issue that list items in `has_device_addr` are still mapped
to the target device because front end emits map type `OMP_MAP_TO`.

Fix #59160.

Reviewed By: jyu2

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