From 6a44ea8c0a1e090a7cd242e856d4a0c3893fba40 Mon Sep 17 00:00:00 2001 From: Omair Javaid Date: Mon, 21 Nov 2016 15:18:58 +0000 Subject: [PATCH] Fix remote-linux regression due to stringRef changes This is to fix a regression in remote-linux lldb-server connections. We were wrongly passing a copy of uri and expecting a stringRef back. llvm-svn: 287542 --- lldb/tools/lldb-server/Acceptor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldb/tools/lldb-server/Acceptor.cpp b/lldb/tools/lldb-server/Acceptor.cpp index 3e59619..00a0bda 100644 --- a/lldb/tools/lldb-server/Acceptor.cpp +++ b/lldb/tools/lldb-server/Acceptor.cpp @@ -90,7 +90,7 @@ std::unique_ptr Acceptor::Create(StringRef name, int port; 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 (UriParser::Parse(name, scheme, host, port, path)) { if (!FindProtocolByScheme(scheme.str().c_str(), socket_protocol)) error.SetErrorStringWithFormat("Unknown protocol scheme \"%s\"", scheme.str().c_str()); -- 2.7.4