From: LLVM Packaging Team Date: Sun, 1 Jan 2023 14:46:39 +0000 (+0000) Subject: debug-jit-path X-Git-Tag: archive/raspbian/1%16.0.6-15+rpi1~4^2~81 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=59eebf459890eca699ccdf87556e4d71c2c47fb5;p=llvm-toolchain-16.git debug-jit-path =================================================================== Gbp-Pq: Name debug-jit-path.diff --- diff --git a/llvm/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp b/llvm/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp index bb41bac325..d998f38f05 100644 --- a/llvm/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp +++ b/llvm/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp @@ -303,8 +303,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/";