[Lldb-commits] [lldb] [lldb] Inline expression evaluator error visualization (PR #106470)

Adrian Prantl via lldb-commits lldb-commits at lists.llvm.org
Fri Sep 27 16:15:59 PDT 2024


================
@@ -1887,7 +1887,8 @@ bool CommandInterpreter::HandleCommand(const char *command_line,
                                        CommandReturnObject &result,
                                        bool force_repeat_command) {
   std::string command_string(command_line);
-  std::string original_command_string(command_line);
+  std::string original_command_string(command_string);
+  std::string real_original_command_string(command_string);
----------------
adrian-prantl wrote:

This is just me being funny. I thought that if there is a std::string implementation that does CoW, then this would be more efficient, since the string data could be shared.

https://github.com/llvm/llvm-project/pull/106470


More information about the lldb-commits mailing list