summaryrefslogtreecommitdiff
path: root/source/API/SBCommunication.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/API/SBCommunication.cpp')
-rw-r--r--source/API/SBCommunication.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/API/SBCommunication.cpp b/source/API/SBCommunication.cpp
index 8ebc33ca26a6..63b672efe3c0 100644
--- a/source/API/SBCommunication.cpp
+++ b/source/API/SBCommunication.cpp
@@ -11,6 +11,7 @@
#include "lldb/API/SBBroadcaster.h"
#include "lldb/Core/Communication.h"
#include "lldb/Host/ConnectionFileDescriptor.h"
+#include "lldb/Host/Host.h"
#include "lldb/Utility/Log.h"
using namespace lldb;
@@ -51,7 +52,7 @@ void SBCommunication::SetCloseOnEOF(bool b) {
ConnectionStatus SBCommunication::Connect(const char *url) {
if (m_opaque) {
if (!m_opaque->HasConnection())
- m_opaque->SetConnection(Connection::CreateDefaultConnection(url));
+ m_opaque->SetConnection(Host::CreateDefaultConnection(url).release());
return m_opaque->Connect(url, NULL);
}
return eConnectionStatusNoConnection;