[Openmp-commits] [PATCH] D95769: [OpenMP][Libomptarget] Remove possible harmful copy constructor call for RTLsTy

Atmn Patel via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Mon Feb 1 17:13:39 PST 2021


This revision was automatically updated to reflect the committed changes.
Closed by commit rGb545667d0a4e: [OpenMP][Libomptarget] Remove possible harmful copy constructor call for RTLsTy (authored by adpatel6).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D95769/new/

https://reviews.llvm.org/D95769

Files:
  openmp/libomptarget/src/interface.cpp


Index: openmp/libomptarget/src/interface.cpp
===================================================================
--- openmp/libomptarget/src/interface.cpp
+++ openmp/libomptarget/src/interface.cpp
@@ -94,7 +94,7 @@
 /// adds a target shared library to the target execution image
 EXTERN void __tgt_register_lib(__tgt_bin_desc *desc) {
   TIMESCOPE();
-  std::call_once(PM->RTLs.initFlag, &RTLsTy::LoadRTLs, PM->RTLs);
+  std::call_once(PM->RTLs.initFlag, &RTLsTy::LoadRTLs, &PM->RTLs);
   for (auto &RTL : PM->RTLs.AllRTLs) {
     if (RTL.register_lib) {
       if ((*RTL.register_lib)(desc) != OFFLOAD_SUCCESS) {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D95769.320638.patch
Type: text/x-patch
Size: 614 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20210202/c8e6dcfa/attachment.bin>


More information about the Openmp-commits mailing list