[Openmp-commits] [openmp] [Libomptarget] Pass '-Werror=global-constructors' to the libomptarget build (PR #88531)

Michael Kruse via Openmp-commits openmp-commits at lists.llvm.org
Tue Apr 16 06:14:53 PDT 2024


================
@@ -362,7 +362,10 @@ struct RecordReplayTy {
   }
 };
 
-static RecordReplayTy RecordReplay;
+RecordReplayTy &getRecordReplay() {
----------------
Meinersbur wrote:

Add some comment about the singleton pattern and whether it is thread-safe ("magic static")?

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


More information about the Openmp-commits mailing list