[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:
Pavel Labath 2020-01-29 11:15:20 +01:00
parent f6bb58542a
commit 7a6ebb5ba3
2 changed files with 3 additions and 3 deletions

View File

@ -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;
}

View File

@ -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) {