[lldb/Plugin] Fix implicit conversion in GDBRemote
authorJonas Devlieghere <jonas@devlieghere.com>
Tue, 28 Jan 2020 23:16:56 +0000 (15:16 -0800)
committerJonas Devlieghere <jonas@devlieghere.com>
Tue, 28 Jan 2020 23:16:56 +0000 (15:16 -0800)
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp

index cac26745a6bfdaea432757bc6b10e64805cf074b..abb8f63b8b5231c7c6fa3e79bfb666e5f318bfcf 100644 (file)
@@ -1228,7 +1228,7 @@ void GDBRemoteCommunicationServerCommon::
     if (cpu_subtype != 0)
       response.Printf("cpusubtype:%" PRIx32 ";", cpu_subtype);
 
-    const std::string vendor = proc_triple.getVendorName();
+    const std::string vendor = proc_triple.getVendorName().str();
     if (!vendor.empty())
       response.Printf("vendor:%s;", vendor.c_str());
 #else