[Openmp-commits] [PATCH] D109266: [OpenMP] libomptarget build fix proposal

David CARLIER via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Fri Sep 3 21:32:05 PDT 2021


devnexen created this revision.
devnexen added a reviewer: ye-luo.
Herald added subscribers: guansong, yaxunl.
devnexen requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added subscribers: openmp-commits, sstefan1.
Herald added a project: OpenMP.

build fails due to the unique_ptr member.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D109266

Files:
  openmp/libomptarget/src/device.cpp


Index: openmp/libomptarget/src/device.cpp
===================================================================
--- openmp/libomptarget/src/device.cpp
+++ openmp/libomptarget/src/device.cpp
@@ -33,11 +33,14 @@
   RTLDeviceID = D.RTLDeviceID;
   IsInit = D.IsInit;
   HasPendingGlobals = D.HasPendingGlobals;
-  HostDataToTargetMap = D.HostDataToTargetMap;
   PendingCtorsDtors = D.PendingCtorsDtors;
   ShadowPtrMap = D.ShadowPtrMap;
   LoopTripCnt = D.LoopTripCnt;
 
+  HostDataToTargetMap.clear();
+  for (auto hostData: D.HostDataToTargetMap)
+	  HostDataToTargetMap.insert(hostData);
+
   return *this;
 }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109266.370696.patch
Type: text/x-patch
Size: 610 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20210904/109da0d2/attachment.bin>


More information about the Openmp-commits mailing list