[Lldb-commits] [lldb] r191476 - Remove unnecessary checks for thread_plan_sp (we check for this at the top of the function.)

Jim Ingham jingham at apple.com
Thu Sep 26 18:13:01 PDT 2013


Author: jingham
Date: Thu Sep 26 20:13:01 2013
New Revision: 191476

URL: http://llvm.org/viewvc/llvm-project?rev=191476&view=rev
Log:
Remove unnecessary checks for thread_plan_sp (we check for this at the top of the function.)

Modified:
    lldb/trunk/source/Target/Process.cpp

Modified: lldb/trunk/source/Target/Process.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Target/Process.cpp?rev=191476&r1=191475&r2=191476&view=diff
==============================================================================
--- lldb/trunk/source/Target/Process.cpp (original)
+++ lldb/trunk/source/Target/Process.cpp Thu Sep 26 20:13:01 2013
@@ -5358,7 +5358,7 @@ Process::RunThreadPlan (ExecutionContext
                     log->Printf("Process::RunThreadPlan(): execution interrupted: %s", s.GetData());
             }
             
-            if (should_unwind && thread_plan_sp)
+            if (should_unwind)
             {
                 if (log)
                     log->Printf ("Process::RunThreadPlan: ExecutionInterrupted - discarding thread plans up to %p.", thread_plan_sp.get());
@@ -5376,7 +5376,7 @@ Process::RunThreadPlan (ExecutionContext
             if (log)
                 log->PutCString("Process::RunThreadPlan(): execution set up error.");
                 
-            if (unwind_on_error && thread_plan_sp)
+            if (unwind_on_error)
             {
                 thread->DiscardThreadPlansUpToPlan (thread_plan_sp);
                 thread_plan_sp->SetPrivate (orig_plan_private);





More information about the lldb-commits mailing list