[Lldb-commits] [lldb] [lldb] Fix ambiguous call to create_directories in TraceIntelPTBundleSaver (#191967) (PR #192025)

Sylvestre Ledru via lldb-commits lldb-commits at lists.llvm.org
Tue Apr 14 02:11:11 PDT 2026


https://github.com/sylvestre created https://github.com/llvm/llvm-project/pull/192025


Fixes #191967



>From 5336d67f652c89ca92143d050c1bb61df2814108 Mon Sep 17 00:00:00 2001
From: Sylvestre Ledru <sylvestre at debian.org>
Date: Tue, 14 Apr 2026 11:07:14 +0200
Subject: [PATCH] [lldb] Fix ambiguous call to create_directories in
 TraceIntelPTBundleSaver (#191967)

Fixes #191967
---
 lldb/source/Plugins/Trace/intel-pt/TraceIntelPTBundleSaver.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lldb/source/Plugins/Trace/intel-pt/TraceIntelPTBundleSaver.cpp b/lldb/source/Plugins/Trace/intel-pt/TraceIntelPTBundleSaver.cpp
index fc0620428a7bd..25c54243f60ee 100644
--- a/lldb/source/Plugins/Trace/intel-pt/TraceIntelPTBundleSaver.cpp
+++ b/lldb/source/Plugins/Trace/intel-pt/TraceIntelPTBundleSaver.cpp
@@ -272,7 +272,7 @@ BuildModulesSection(Process &process, FileSpec directory) {
     FileSpec path_to_copy_module = directory;
     path_to_copy_module.AppendPathComponent("modules");
     path_to_copy_module.AppendPathComponent(system_path);
-    sys::fs::create_directories(path_to_copy_module.GetDirectory());
+    sys::fs::create_directories(path_to_copy_module.GetDirectory().GetStringRef());
 
     if (std::error_code ec =
             llvm::sys::fs::copy_file(file, path_to_copy_module.GetPath()))



More information about the lldb-commits mailing list