summaryrefslogtreecommitdiffstats
path: root/lldb/source/Breakpoint/BreakpointLocationList.cpp
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-08-11 21:43:13 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-08-11 21:43:13 +0000
commit0861be0c304651c590104a0a5b3023e46703f709 (patch)
tree19a5101996380f0c5c0feeae17a5e0cd35e6dd38 /lldb/source/Breakpoint/BreakpointLocationList.cpp
parent88981ff1685555b9002550841d3c00dee8215ae0 (diff)
downloadbcm5719-llvm-0861be0c304651c590104a0a5b3023e46703f709.tar.gz
bcm5719-llvm-0861be0c304651c590104a0a5b3023e46703f709.zip
Silence the static analyzer.
llvm-svn: 137360
Diffstat (limited to 'lldb/source/Breakpoint/BreakpointLocationList.cpp')
-rw-r--r--lldb/source/Breakpoint/BreakpointLocationList.cpp13
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;
OpenPOWER on IntegriCloud