================
@@ -685,6 +691,7 @@ getInput(const cl::LibraryOptionsContext &LibraryOptions, 
const ArgList &Args) {
     // Run the LTO job to compile the bitcode.
     size_t MaxTasks = LTOBackend.getMaxTasks();
     SmallVector<StringRef> LTOFiles(MaxTasks);
+    std::mutex TempFilesMutex;
----------------
jhuber6 wrote:

A mutex shouldn't be necessary. `createTempFile` is intended to be thread safe 
on its own and everything else should have an index in an array of size 
`MaxTasks` like above.

https://github.com/llvm/llvm-project/pull/238883
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to