diff options
Diffstat (limited to 'lldb/source/Breakpoint/BreakpointLocationCollection.cpp')
-rw-r--r-- | lldb/source/Breakpoint/BreakpointLocationCollection.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lldb/source/Breakpoint/BreakpointLocationCollection.cpp b/lldb/source/Breakpoint/BreakpointLocationCollection.cpp index af3f8e54be7..870686a9e4d 100644 --- a/lldb/source/Breakpoint/BreakpointLocationCollection.cpp +++ b/lldb/source/Breakpoint/BreakpointLocationCollection.cpp @@ -138,11 +138,10 @@ bool BreakpointLocationCollection::ShouldStop (StoppointCallbackContext *context) { bool shouldStop = false; - const size_t count = GetSize(); - for (size_t i = 0; i < count; i++) { - bool one_result = GetByIndex(i)->ShouldStop(context); - if (one_result) + for (size_t i = 0; i < count; i++) + { + if (GetByIndex(i)->ShouldStop(context)) shouldStop = true; } return shouldStop; |