From 9197ae931de478acf9190e06be2061ed9b96d185 Mon Sep 17 00:00:00 2001 From: LLVM Packaging Team Date: Wed, 2 Sep 2020 12:55:46 +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 cc196df3b..f61f0a1c8 100644 --- a/llvm/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp +++ b/llvm/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp @@ -301,8 +301,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