[Openmp-commits] [openmp] [OpenMP][NFC] Remove `DelayedBinDesc` (PR #74360)

Johannes Doerfert via Openmp-commits openmp-commits at lists.llvm.org
Tue Dec 5 07:05:25 PST 2023

jdoerfert wrote:

> What's the race condition / UB in question?

The only time we could have called it was after we
created PM in the init() constructor. However, we immediately went
ahead and called registerDelayedLibraries which disabled
DelayedBinDesc for the future. There is no "time" at which 
`RTLsLoaded` is false, hence `DelayedBinDesc` can be used,
after `PM` is initialized. So, whenever we hit the `delayRegisterLib`,
`PM` is nullptr, or `DelayedBinDesc` is set to false.


More information about the Openmp-commits mailing list