[clang] [clang-scan-deps] Fix contention when updating `TrackingStatistic`s in hot code paths in `FileManager`. (PR #88427)

Alexandre Ganea via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 24 09:33:39 PDT 2024


================
@@ -1293,6 +1293,10 @@ compileModuleImpl(CompilerInstance &ImportingInstance, SourceLocation ImportLoc,
                                             diag::remark_module_build_done)
     << ModuleName;
 
+  // Propagate the statistics to the parent FileManager.
+  if (FrontendOpts.ModulesShareFileManager)
----------------
aganea wrote:

Yes, you're right, fixed!

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


More information about the cfe-commits mailing list