Lock the Platform mutex in PlatformDarwin::GetDeveloperDirectory().

Partial fix for: <rdar://problem/19575304>

llvm-svn: 227863
This commit is contained in:
Greg Clayton 2015-02-02 21:18:46 +00:00
parent a261064483
commit e89941b3bb
1 changed files with 1 additions and 0 deletions

View File

@ -987,6 +987,7 @@ PlatformDarwin::ARMGetSupportedArchitectureAtIndex (uint32_t idx, ArchSpec &arch
const char *
PlatformDarwin::GetDeveloperDirectory()
{
Mutex::Locker locker (m_mutex);
if (m_developer_directory.empty())
{
bool developer_dir_path_valid = false;