Skip to content

Commit 85bbf8c

Browse files
[lldb] Use llvm::is_contained (NFC) (llvm#139758)
1 parent 2798369 commit 85bbf8c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lldb/tools/lldb-dap/DAP.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1194,8 +1194,7 @@ bool SendEventRequestHandler::DoExecute(lldb::SBDebugger debugger,
11941194
"exited", "initialize", "loadedSource",
11951195
"module", "process", "stopped",
11961196
"terminated", "thread"};
1197-
if (std::find(internal_events.begin(), internal_events.end(), name) !=
1198-
std::end(internal_events)) {
1197+
if (llvm::is_contained(internal_events, name)) {
11991198
std::string msg =
12001199
llvm::formatv("Invalid use of lldb-dap send-event, event \"{0}\" "
12011200
"should be handled by lldb-dap internally.",

0 commit comments

Comments
 (0)