Author: Pavel Labath Date: 2020-01-29T10:08:40+01:00 New Revision: e06444d982f031ed2de20b8d5d3de2dfadb09e96
URL: https://github.com/llvm/llvm-project/commit/e06444d982f031ed2de20b8d5d3de2dfadb09e96 DIFF: https://github.com/llvm/llvm-project/commit/e06444d982f031ed2de20b8d5d3de2dfadb09e96.diff LOG: [lldb] Fix windows build for the StringRef conversion operator change "operator std::string()" is now explicit. Added: Modified: lldb/source/Host/windows/PipeWindows.cpp Removed: ################################################################################ diff --git a/lldb/source/Host/windows/PipeWindows.cpp b/lldb/source/Host/windows/PipeWindows.cpp index 38e490482ed4..873eb51dc682 100644 --- a/lldb/source/Host/windows/PipeWindows.cpp +++ b/lldb/source/Host/windows/PipeWindows.cpp @@ -105,7 +105,7 @@ Status PipeWindows::CreateNew(llvm::StringRef name, return Status(ERROR_ALREADY_EXISTS, eErrorTypeWin32); std::string pipe_path = g_pipe_name_prefix; - pipe_path.append(name); + pipe_path.append(name.str()); // Always open for overlapped i/o. We implement blocking manually in Read // and Write. @@ -183,7 +183,7 @@ Status PipeWindows::OpenNamedPipe(llvm::StringRef name, attributes.bInheritHandle = child_process_inherit; std::string pipe_path = g_pipe_name_prefix; - pipe_path.append(name); + pipe_path.append(name.str()); if (is_read) { m_read = ::CreateFileA(pipe_path.c_str(), GENERIC_READ, 0, &attributes, _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits