[Openmp-commits] [openmp] [Libomptarget] Pass '-Werror=global-constructors' to the libomptarget build (PR #88531)
    Joseph Huber via Openmp-commits 
    openmp-commits at lists.llvm.org
       
    Tue Apr 16 06:17:42 PDT 2024
    
    
  
================
@@ -362,7 +362,10 @@ struct RecordReplayTy {
   }
 };
 
-static RecordReplayTy RecordReplay;
+RecordReplayTy &getRecordReplay() {
----------------
jhuber6 wrote:
I think I just need to move this into the plugin initialization code. @jdoerfert could we just move this into the plugin instead? I'm assuming we don't need this to actually be global and it would make the lifetime much nicer.
https://github.com/llvm/llvm-project/pull/88531
    
    
More information about the Openmp-commits
mailing list