debug-jit-path
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Sat, 15 Aug 2020 20:34:33 +0000 (21:34 +0100)
committerGianfranco Costamagna <locutusofborg@debian.org>
Sat, 15 Aug 2020 20:34:33 +0000 (21:34 +0100)
===================================================================

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

lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp

index f195d028299865aeea3850bab1cc0e38a7f2e5f6..cd6335b3044d983518557749de64bc43fdabddcb 100644 (file)
@@ -295,8 +295,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/";