[Lldb-commits] [lldb] [lldb] Fix Windows build after 6b51e26d39fa (PR #170917)
Alex Langford via lldb-commits
lldb-commits at lists.llvm.org
Fri Dec 5 12:28:22 PST 2025
https://github.com/bulbazord created https://github.com/llvm/llvm-project/pull/170917
None
>From 33f9ae349bf67b5d7b854aa72a91184dacb9c816 Mon Sep 17 00:00:00 2001
From: Alex Langford <alangford at apple.com>
Date: Fri, 5 Dec 2025 12:27:01 -0800
Subject: [PATCH] [lldb] Fix Windows build after 6b51e26d39fa
---
lldb/source/Host/windows/ProcessLauncherWindows.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lldb/source/Host/windows/ProcessLauncherWindows.cpp b/lldb/source/Host/windows/ProcessLauncherWindows.cpp
index ac5383f20f58e..e983c527a174a 100644
--- a/lldb/source/Host/windows/ProcessLauncherWindows.cpp
+++ b/lldb/source/Host/windows/ProcessLauncherWindows.cpp
@@ -241,7 +241,6 @@ ProcessLauncherWindows::GetStdioHandle(const ProcessLaunchInfo &launch_info,
secattr.nLength = sizeof(SECURITY_ATTRIBUTES);
secattr.bInheritHandle = TRUE;
- llvm::StringRef path = action->GetPath();
DWORD access = 0;
DWORD share = FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE;
DWORD create = 0;
@@ -258,6 +257,7 @@ ProcessLauncherWindows::GetStdioHandle(const ProcessLaunchInfo &launch_info,
flags = FILE_FLAG_WRITE_THROUGH;
}
+ const std::string path = action->GetFileSpec().GetPath();
std::wstring wpath;
llvm::ConvertUTF8toWide(path, wpath);
HANDLE result = ::CreateFileW(wpath.c_str(), access, share, &secattr, create,
More information about the lldb-commits
mailing list