mirror of
				https://git.proxmox.com/git/llvm-toolchain
				synced 2025-11-04 04:22:11 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			828 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			828 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
Index: llvm-toolchain-snapshot_11~++20200326111000+4673699a470/llvm/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp
 | 
						|
===================================================================
 | 
						|
--- llvm-toolchain-snapshot_11~++20200326111000+4673699a470.orig/llvm/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp
 | 
						|
+++ llvm-toolchain-snapshot_11~++20200326111000+4673699a470/llvm/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp
 | 
						|
@@ -301,8 +301,8 @@ bool PerfJITEventListener::InitDebugging
 | 
						|
   // search for location to dump data to
 | 
						|
   if (const char *BaseDir = getenv("JITDUMPDIR"))
 | 
						|
     Path.append(BaseDir);
 | 
						|
-  else if (!sys::path::home_directory(Path))
 | 
						|
-    Path = ".";
 | 
						|
+  else
 | 
						|
+    sys::path::system_temp_directory(/*ErasedOnReboot*/ true, Path);
 | 
						|
 
 | 
						|
   // create debug directory
 | 
						|
   Path += "/.debug/jit/";
 |