mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-06-14 21:40:47 +00:00
16 lines
756 B
Diff
16 lines
756 B
Diff
Index: llvm-toolchain-snapshot_10~svn370025/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp
|
|
===================================================================
|
|
--- llvm-toolchain-snapshot_10~svn370025.orig/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp
|
|
+++ llvm-toolchain-snapshot_10~svn370025/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp
|
|
@@ -300,8 +300,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/";
|