[Lldb-commits] [lldb] [lldb] Fix Windows build after 6b51e26d39fa (PR #170917)
via lldb-commits
lldb-commits at lists.llvm.org
Fri Dec 5 12:28:55 PST 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-lldb
Author: Alex Langford (bulbazord)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/170917.diff
1 Files Affected:
- (modified) lldb/source/Host/windows/ProcessLauncherWindows.cpp (+1-1)
``````````diff
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,
``````````
</details>
https://github.com/llvm/llvm-project/pull/170917
More information about the lldb-commits
mailing list