From 92723851de1364e0a8c7763e9939b2159f581a05 Mon Sep 17 00:00:00 2001 From: LLVM Packaging Team Date: Mon, 23 Sep 2024 13:23:31 +0200 Subject: [PATCH] debug-jit-path =================================================================== Gbp-Pq: Name debug-jit-path.diff --- .../ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp b/llvm/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp index e2b5ce49ba..12796cace6 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/"; -- 2.30.2