[Lldb-commits] [lldb] r137355 - /lldb/trunk/source/Breakpoint/BreakpointIDList.cpp

Johnny Chen johnny.chen at apple.com
Thu Aug 11 14:24:08 PDT 2011


Author: johnny
Date: Thu Aug 11 16:24:08 2011
New Revision: 137355

URL: http://llvm.org/viewvc/llvm-project?rev=137355&view=rev
Log:
To silence the static analyzer.

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

Modified: lldb/trunk/source/Breakpoint/BreakpointIDList.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Breakpoint/BreakpointIDList.cpp?rev=137355&r1=137354&r2=137355&view=diff
==============================================================================
--- lldb/trunk/source/Breakpoint/BreakpointIDList.cpp (original)
+++ lldb/trunk/source/Breakpoint/BreakpointIDList.cpp Thu Aug 11 16:24:08 2011
@@ -91,7 +91,6 @@
 bool
 BreakpointIDList::FindBreakpointID (BreakpointID &bp_id, uint32_t *position)
 {
-    bool success = false;
     BreakpointIDArray::iterator tmp_pos;
 
     for (size_t i = 0; i < m_breakpoint_ids.size(); ++i)
@@ -100,7 +99,6 @@
         if (tmp_id.GetBreakpointID() == bp_id.GetBreakpointID()
             && tmp_id.GetLocationID() == bp_id.GetLocationID())
         {
-            success = true;
             *position = i;
             return true;
         }





More information about the lldb-commits mailing list