From 8822ba8e8135a63d01437e37010c3f4af65c7ab0 Mon Sep 17 00:00:00 2001 From: LLVM Packaging Team Date: Fri, 22 Jul 2022 14:10:20 +0100 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 4a236e183c..d885b7df9f 100644 --- a/llvm/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp +++ b/llvm/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp @@ -304,8 +304,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