[all-commits] [llvm/llvm-project] d5a62b: [lldb][NFCI] Remove unneccessary allocation in Scr...

Alex Langford via All-commits all-commits at lists.llvm.org
Tue Sep 19 10:50:06 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d5a62b78b8ae1856e9eecf7d034ce6a1fbc0a76a
  Author: Alex Langford <alangford at apple.com>
  Date:   2023-09-19 (Tue, 19 Sep 2023)

  Changed paths:
    M lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp

  Log Message:
  [lldb][NFCI] Remove unneccessary allocation in ScriptInterpreterPythonImpl::GetSyntheticTypeName (#66724)

Instead of copying memory out of the PythonString (via a std::string)
and then using that to create a ConstString, it would make more sense to
just create the ConstString from the original StringRef in the first

More information about the All-commits mailing list