debug-jit-path
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Fri, 18 Sep 2020 09:47:25 +0000 (10:47 +0100)
committerEmilio Pozuelo Monfort <pochu@debian.org>
Fri, 18 Sep 2020 09:47:25 +0000 (10:47 +0100)
===================================================================

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/";