[lldb] Use std::string instead of llvm::Twine in GDBRemoteCommunicationClient
authorJonas Devlieghere <jonas@devlieghere.com>
Fri, 5 Nov 2021 20:18:06 +0000 (13:18 -0700)
committerJonas Devlieghere <jonas@devlieghere.com>
Fri, 5 Nov 2021 20:19:00 +0000 (13:19 -0700)
commit6d48e2505c7a68a470e75b61ad504d51db0f8a36
treef482f4689f124777b98ba2025375fa3980d435f0
parent10eb32f45d40e180a229590f57dd0a61f97f1bc9
[lldb] Use std::string instead of llvm::Twine in GDBRemoteCommunicationClient

From the documentation:

  A Twine is not intended for use directly and should not be stored, its
  implementation relies on the ability to store pointers to temporary
  stack objects which may be deallocated at the end of a statement.
  Twines should only be used accepted as const references in arguments,
  when an API wishes to accept possibly-concatenated strings.

rdar://84799118

Differential revision: https://reviews.llvm.org/D113314
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp