[FileCollector] Lock Mutex in copyFiles
authorJan Korous <jkorous@apple.com>
Tue, 28 Apr 2020 17:43:17 +0000 (10:43 -0700)
committerJan Korous <jkorous@apple.com>
Tue, 28 Apr 2020 18:08:04 +0000 (11:08 -0700)
commit1e43cab3c6724b2f9089a0a2b42e8dfdfdd1a299
tree8ddc10fe4915bca0e9b43d2545b7bda168ff6fb1
parent0de7ddbfb033671d6ba75aa8c88c63e2919a6ad6
[FileCollector] Lock Mutex in copyFiles

We should synchronize reading of VFSWriter's data with the rest of the methods.

Differential revision: https://reviews.llvm.org/D78956
llvm/include/llvm/Support/FileCollector.h
llvm/lib/Support/FileCollector.cpp