diff options
Diffstat (limited to 'lldb/source/Breakpoint/BreakpointLocationList.cpp')
-rw-r--r-- | lldb/source/Breakpoint/BreakpointLocationList.cpp | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/lldb/source/Breakpoint/BreakpointLocationList.cpp b/lldb/source/Breakpoint/BreakpointLocationList.cpp index 89742a60901..f71382f8a80 100644 --- a/lldb/source/Breakpoint/BreakpointLocationList.cpp +++ b/lldb/source/Breakpoint/BreakpointLocationList.cpp @@ -95,20 +95,11 @@ BreakpointLocationList::FindInModule (Module *module, for (pos = m_locations.begin(); pos != end; ++pos) { - bool seen = false; BreakpointLocationSP break_loc = (*pos); const Section *section = break_loc->GetAddress().GetSection(); - if (section) + if (section && section->GetModule() == module) { - if (section->GetModule() == module) - { - if (!seen) - { - seen = true; - bp_loc_list.Add (break_loc); - } - - } + bp_loc_list.Add (break_loc); } } return bp_loc_list.GetSize() - orig_size; |