[Openmp-commits] [PATCH] D78744: [libomptarget] Initialize reference parameter IsNew within Device::getOrAllocTgtPtr
Ron Lieberman via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Fri Apr 24 04:49:43 PDT 2020
ronlieb updated this revision to Diff 259858.
ronlieb retitled this revision from "[libomptarget] Initialize IsNew and Pointer_IsNew in target_data_begin" to "[libomptarget] Initialize reference parameter IsNew within Device::getOrAllocTgtPtr".
ronlieb edited the summary of this revision.
ronlieb added a comment.
Modified patch to assign to IsNew on entry to Device::getOrAllocTgtPtr
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D78744/new/
https://reviews.llvm.org/D78744
Files:
openmp/libomptarget/src/device.cpp
Index: openmp/libomptarget/src/device.cpp
===================================================================
--- openmp/libomptarget/src/device.cpp
+++ openmp/libomptarget/src/device.cpp
@@ -157,6 +157,7 @@
bool UpdateRefCount, bool HasCloseModifier) {
void *rc = NULL;
IsHostPtr = false;
+ IsNew = false;
DataMapMtx.lock();
LookupResult lr = lookupMapping(HstPtrBegin, Size);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78744.259858.patch
Type: text/x-patch
Size: 398 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20200424/ca75a5d5/attachment.bin>
More information about the Openmp-commits
mailing list