================ @@ -93,21 +95,29 @@ using namespace llvm; namespace { +static ManagedStatic<sys::SmartMutex<true>> ReportedErrorsLock; ---------------- arsenm wrote: Document this https://github.com/llvm/llvm-project/pull/111605