[Lldb-commits] [lldb] r137360 - /lldb/trunk/source/Breakpoint/BreakpointLocationList.cpp

Johnny Chen johnny.chen at apple.com
Thu Aug 11 14:43:13 PDT 2011


Author: johnny
Date: Thu Aug 11 16:43:13 2011
New Revision: 137360

URL: http://llvm.org/viewvc/llvm-project?rev=137360&view=rev
Log:
Silence the static analyzer.

Modified:
    lldb/trunk/source/Breakpoint/BreakpointLocationList.cpp

Modified: lldb/trunk/source/Breakpoint/BreakpointLocationList.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Breakpoint/BreakpointLocationList.cpp?rev=137360&r1=137359&r2=137360&view=diff
==============================================================================
--- lldb/trunk/source/Breakpoint/BreakpointLocationList.cpp (original)
+++ lldb/trunk/source/Breakpoint/BreakpointLocationList.cpp Thu Aug 11 16:43:13 2011
@@ -95,20 +95,11 @@
 
     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;





More information about the lldb-commits mailing list