diff options
author | Ye Luo <yeluo@anl.gov> | 2023-03-23 08:56:47 -0500 |
---|---|---|
committer | Ye Luo <yeluo@anl.gov> | 2023-03-23 08:57:23 -0500 |
commit | 3ab79124db5e4e1be0b58c4fe43ff01e6fdb3060 (patch) | |
tree | 69f220c43c7f2241ccd5a6f05d0f77ec4ccff156 /openmp | |
parent | 5193c4a8b38c3e61c862d5badf1cace7c26324f7 (diff) | |
download | llvm-3ab79124db5e4e1be0b58c4fe43ff01e6fdb3060.tar.gz |
[OpenMP] Add notifyDataUnmapped back in disassociatePtr
Fix regression introduced by https://reviews.llvm.org/D123446
Reviewed By: tianshilei1992
Differential Revision: https://reviews.llvm.org/D146689
Diffstat (limited to 'openmp')
-rw-r--r-- | openmp/libomptarget/src/device.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openmp/libomptarget/src/device.cpp b/openmp/libomptarget/src/device.cpp index 09c8e808db46..22ab7436f75b 100644 --- a/openmp/libomptarget/src/device.cpp +++ b/openmp/libomptarget/src/device.cpp @@ -134,7 +134,7 @@ int DeviceTy::disassociatePtr(void *HstPtrBegin) { if (Event) destroyEvent(Event); HDTTMap->erase(It); - return OFFLOAD_SUCCESS; + return notifyDataUnmapped(HstPtrBegin); } REPORT("Trying to disassociate a pointer which was not mapped via " |