forked from OSchip/llvm-project
[lldb] More windows StringRef fixes
I don't have a windows build around, so I am just going by the buildbot messages.
This commit is contained in:
parent
f6bb58542a
commit
7a6ebb5ba3
|
@ -127,7 +127,7 @@ lldb::ConnectionStatus ConnectionGenericFile::Connect(llvm::StringRef path,
|
|||
}
|
||||
|
||||
m_owns_file = true;
|
||||
m_uri.assign(path);
|
||||
m_uri = path.str();
|
||||
return eConnectionStatusSuccess;
|
||||
}
|
||||
|
||||
|
|
|
@ -104,7 +104,7 @@ Status PipeWindows::CreateNew(llvm::StringRef name,
|
|||
if (CanRead() || CanWrite())
|
||||
return Status(ERROR_ALREADY_EXISTS, eErrorTypeWin32);
|
||||
|
||||
std::string pipe_path = g_pipe_name_prefix;
|
||||
std::string pipe_path = g_pipe_name_prefix.str();
|
||||
pipe_path.append(name.str());
|
||||
|
||||
// Always open for overlapped i/o. We implement blocking manually in Read
|
||||
|
@ -182,7 +182,7 @@ Status PipeWindows::OpenNamedPipe(llvm::StringRef name,
|
|||
SECURITY_ATTRIBUTES attributes = {};
|
||||
attributes.bInheritHandle = child_process_inherit;
|
||||
|
||||
std::string pipe_path = g_pipe_name_prefix;
|
||||
std::string pipe_path = g_pipe_name_prefix.str();
|
||||
pipe_path.append(name.str());
|
||||
|
||||
if (is_read) {
|
||||
|
|
Loading…
Reference in New Issue