[OpenMP] Add notifyDataUnmapped back in disassociatePtr
authorYe Luo <yeluo@anl.gov>
Thu, 23 Mar 2023 13:56:47 +0000 (08:56 -0500)
committerYe Luo <yeluo@anl.gov>
Thu, 23 Mar 2023 13:57:23 +0000 (08:57 -0500)
Fix regression introduced by https://reviews.llvm.org/D123446

Reviewed By: tianshilei1992

Differential Revision: https://reviews.llvm.org/D146689

openmp/libomptarget/src/device.cpp

index 09c8e80..22ab743 100644 (file)
@@ -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 "