Lock the Platform mutex in PlatformDarwin::GetDeveloperDirectory().
Partial fix for: <rdar://problem/19575304> llvm-svn: 227863
This commit is contained in:
		
							parent
							
								
									a261064483
								
							
						
					
					
						commit
						e89941b3bb
					
				| 
						 | 
					@ -987,6 +987,7 @@ PlatformDarwin::ARMGetSupportedArchitectureAtIndex (uint32_t idx, ArchSpec &arch
 | 
				
			||||||
const char *
 | 
					const char *
 | 
				
			||||||
PlatformDarwin::GetDeveloperDirectory()
 | 
					PlatformDarwin::GetDeveloperDirectory()
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
					    Mutex::Locker locker (m_mutex);
 | 
				
			||||||
    if (m_developer_directory.empty())
 | 
					    if (m_developer_directory.empty())
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        bool developer_dir_path_valid = false;
 | 
					        bool developer_dir_path_valid = false;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue