[OpenMP] Avoid zero size copies to the device
authorJohannes Doerfert <johannes@jdoerfert.de>
Tue, 21 Mar 2023 22:48:11 +0000 (15:48 -0700)
committerJohannes Doerfert <johannes@jdoerfert.de>
Wed, 22 Mar 2023 02:16:13 +0000 (19:16 -0700)
commitde9edf4afecc1c2caf3b552f9241008ad2bd40a8
tree0e4eec083b1082791fe710c372d31dc72463b390
parentebcc6dba5f0815877322256095b400b31adac5f4
[OpenMP] Avoid zero size copies to the device

This unblocks one of the XFAIL tests for AMD, though we need to work
around the missing printf still.

Differential Revision: https://reviews.llvm.org/D146592
openmp/libomptarget/src/device.cpp
openmp/libomptarget/src/omptarget.cpp
openmp/libomptarget/test/mapping/data_member_ref.cpp