[Lldb-commits] [lldb] [lldb-dap][NFC] avoid copy in launch process (PR #164243)

via lldb-commits lldb-commits at lists.llvm.org
Mon Oct 20 05:04:39 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-lldb

Author: Ebuka Ezike (da-viper)

<details>
<summary>Changes</summary>



---
Full diff: https://github.com/llvm/llvm-project/pull/164243.diff


1 Files Affected:

- (modified) lldb/tools/lldb-dap/Handler/RequestHandler.cpp (+1-1) 


``````````diff
diff --git a/lldb/tools/lldb-dap/Handler/RequestHandler.cpp b/lldb/tools/lldb-dap/Handler/RequestHandler.cpp
index e7d9b89653f1c..de63c9d78efd1 100644
--- a/lldb/tools/lldb-dap/Handler/RequestHandler.cpp
+++ b/lldb/tools/lldb-dap/Handler/RequestHandler.cpp
@@ -181,7 +181,7 @@ void BaseRequestHandler::Run(const Request &request) {
 
 llvm::Error BaseRequestHandler::LaunchProcess(
     const protocol::LaunchRequestArguments &arguments) const {
-  auto launchCommands = arguments.launchCommands;
+  const std::vector<std::string> &launchCommands = arguments.launchCommands;
 
   // Instantiate a launch info instance for the target.
   auto launch_info = dap.target.GetLaunchInfo();

``````````

</details>


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


More information about the lldb-commits mailing list