[Openmp-commits] [openmp] [Libomptarget] Remove extra cache for offloading entries (PR #77012)

Joseph Huber via Openmp-commits openmp-commits at lists.llvm.org
Fri Jan 5 13:59:28 PST 2024


================
@@ -159,7 +159,7 @@ struct DeviceTy {
   /// }
 
   /// Register \p Entry as an offload entry that is avalable on this device.
-  void addOffloadEntry(OffloadEntryTy &Entry);
+  void addOffloadEntry(OffloadEntryTy Entry);
----------------
jhuber6 wrote:

It's fine as long as it's ultimately copied by the `insert` call, otherwise it's a reference to a temporary. I can make the change.

https://github.com/llvm/llvm-project/pull/77012


More information about the Openmp-commits mailing list