diff --git a/lldb/tools/lldb-dap/Handler/SetExceptionBreakpointsRequestHandler.cpp b/lldb/tools/lldb-dap/Handler/SetExceptionBreakpointsRequestHandler.cpp index 09d4fea2a9a22..2214833f8a770 100644 --- a/lldb/tools/lldb-dap/Handler/SetExceptionBreakpointsRequestHandler.cpp +++ b/lldb/tools/lldb-dap/Handler/SetExceptionBreakpointsRequestHandler.cpp @@ -76,7 +76,7 @@ void SetExceptionBreakpointsRequestHandler::operator()( for (const auto &value : *filters) { const auto filter = GetAsString(value); - auto *exc_bp = dap.GetExceptionBreakpoint(std::string(filter)); + auto *exc_bp = dap.GetExceptionBreakpoint(filter); if (exc_bp) { exc_bp->SetBreakpoint(); unset_filters.erase(std::string(filter));