debug-jit-path
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Mon, 30 Dec 2019 14:31:05 +0000 (14:31 +0000)
committerPeter Michael Green <plugwash@raspbian.org>
Mon, 30 Dec 2019 14:31:05 +0000 (14:31 +0000)
===================================================================

Gbp-Pq: Name debug-jit-path.diff

lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp

index 7bf8120d23dfdda91970bff25a40f41b1065f2bd..f933c67af881ca1ba017126daaf3964ca540d16f 100644 (file)
@@ -294,8 +294,8 @@ bool PerfJITEventListener::InitDebuggingDir() {
   // 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/";