[Lldb-commits] [lldb] 25da043 - [lldb] Use llvm::is_contained (NFC) (#140466)
via lldb-commits
lldb-commits at lists.llvm.org
Mon May 19 06:18:42 PDT 2025
Author: Kazu Hirata
Date: 2025-05-19T06:18:37-07:00
New Revision: 25da043c55e25d066a5aa8af6ca14cf82a845eb2
URL: https://github.com/llvm/llvm-project/commit/25da043c55e25d066a5aa8af6ca14cf82a845eb2
DIFF: https://github.com/llvm/llvm-project/commit/25da043c55e25d066a5aa8af6ca14cf82a845eb2.diff
LOG: [lldb] Use llvm::is_contained (NFC) (#140466)
Added:
Modified:
lldb/source/Expression/FunctionCaller.cpp
Removed:
################################################################################
diff --git a/lldb/source/Expression/FunctionCaller.cpp b/lldb/source/Expression/FunctionCaller.cpp
index ddf1e1151bdcf..83cac130ba728 100644
--- a/lldb/source/Expression/FunctionCaller.cpp
+++ b/lldb/source/Expression/FunctionCaller.cpp
@@ -171,10 +171,8 @@ bool FunctionCaller::WriteFunctionArguments(
m_wrapper_args_addrs.push_back(args_addr_ref);
} else {
// Make sure this is an address that we've already handed out.
- if (find(m_wrapper_args_addrs.begin(), m_wrapper_args_addrs.end(),
- args_addr_ref) == m_wrapper_args_addrs.end()) {
+ if (!llvm::is_contained(m_wrapper_args_addrs, args_addr_ref))
return false;
- }
}
// TODO: verify fun_addr needs to be a callable address
More information about the lldb-commits
mailing list