Skip to content

Commit ecf4927

Browse files
authored
[lldb] Fix Windows build after 6b51e26 (#170917)
1 parent 93d64a5 commit ecf4927

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Host/windows/ProcessLauncherWindows.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,6 @@ ProcessLauncherWindows::GetStdioHandle(const ProcessLaunchInfo &launch_info,
241241
secattr.nLength = sizeof(SECURITY_ATTRIBUTES);
242242
secattr.bInheritHandle = TRUE;
243243

244-
llvm::StringRef path = action->GetPath();
245244
DWORD access = 0;
246245
DWORD share = FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE;
247246
DWORD create = 0;
@@ -258,6 +257,7 @@ ProcessLauncherWindows::GetStdioHandle(const ProcessLaunchInfo &launch_info,
258257
flags = FILE_FLAG_WRITE_THROUGH;
259258
}
260259

260+
const std::string path = action->GetFileSpec().GetPath();
261261
std::wstring wpath;
262262
llvm::ConvertUTF8toWide(path, wpath);
263263
HANDLE result = ::CreateFileW(wpath.c_str(), access, share, &secattr, create,

0 commit comments

Comments
 (0)