[Lldb-commits] [lldb] r287212 - Fix one more build error with lldb-server.
Zachary Turner via lldb-commits
lldb-commits at lists.llvm.org
Wed Nov 16 22:13:54 PST 2016
Author: zturner
Date: Thu Nov 17 00:13:54 2016
New Revision: 287212
URL: http://llvm.org/viewvc/llvm-project?rev=287212&view=rev
Log:
Fix one more build error with lldb-server.
Modified:
lldb/trunk/tools/lldb-server/Acceptor.cpp
Modified: lldb/trunk/tools/lldb-server/Acceptor.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/lldb-server/Acceptor.cpp?rev=287212&r1=287211&r2=287212&view=diff
==============================================================================
--- lldb/trunk/tools/lldb-server/Acceptor.cpp (original)
+++ lldb/trunk/tools/lldb-server/Acceptor.cpp Thu Nov 17 00:13:54 2016
@@ -88,12 +88,12 @@ std::unique_ptr<Acceptor> Acceptor::Crea
Socket::SocketProtocol socket_protocol = Socket::ProtocolUnixDomain;
int port;
- std::string scheme, host, path;
+ StringRef scheme, host, path;
// Try to match socket name as URL - e.g., tcp://localhost:5555
if (UriParser::Parse(name.str(), scheme, host, port, path)) {
- if (!FindProtocolByScheme(scheme.c_str(), socket_protocol))
+ if (!FindProtocolByScheme(scheme.str().c_str(), socket_protocol))
error.SetErrorStringWithFormat("Unknown protocol scheme \"%s\"",
- scheme.c_str());
+ scheme.str().c_str());
else
name = name.drop_front(scheme.size() + strlen("://"));
} else {
More information about the lldb-commits
mailing list