https://github.com/charles-zablit created https://github.com/llvm/llvm-project/pull/200820
None >From a55a862189cc615a5b524ee9aa837d89d1be7efd Mon Sep 17 00:00:00 2001 From: Charles Zablit <[email protected]> Date: Mon, 1 Jun 2026 14:25:27 +0100 Subject: [PATCH] [NFC][lldb][windows] simplify NativeProcessWindows::FindSoftwareBreakpoint --- .../Plugins/Process/Windows/Common/NativeProcessWindows.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lldb/source/Plugins/Process/Windows/Common/NativeProcessWindows.cpp b/lldb/source/Plugins/Process/Windows/Common/NativeProcessWindows.cpp index 26fc31fb27cf6..56bad1a37b5d0 100644 --- a/lldb/source/Plugins/Process/Windows/Common/NativeProcessWindows.cpp +++ b/lldb/source/Plugins/Process/Windows/Common/NativeProcessWindows.cpp @@ -320,10 +320,7 @@ size_t NativeProcessWindows::GetSoftwareBreakpointPCOffset() { } bool NativeProcessWindows::FindSoftwareBreakpoint(lldb::addr_t addr) { - auto it = m_software_breakpoints.find(addr); - if (it == m_software_breakpoints.end()) - return false; - return true; + return m_software_breakpoints.find(addr) != m_software_breakpoints.end(); } Status NativeProcessWindows::SetBreakpoint(lldb::addr_t addr, uint32_t size, _______________________________________________ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
