[Lldb-commits] [lldb] [lldb-dap][NFC] avoid copy in launch process (PR #164243)
Ebuka Ezike via lldb-commits
lldb-commits at lists.llvm.org
Mon Oct 20 05:04:11 PDT 2025
https://github.com/da-viper created https://github.com/llvm/llvm-project/pull/164243
None
>From 08343ffa07fe2928d2aa453a2c17f24c2a769ab8 Mon Sep 17 00:00:00 2001
From: Ebuka Ezike <yerimyah1 at gmail.com>
Date: Mon, 20 Oct 2025 12:43:21 +0100
Subject: [PATCH] [lldb-dap][NFC] avoid copy in launch commands.
---
lldb/tools/lldb-dap/Handler/RequestHandler.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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();
More information about the lldb-commits
mailing list