From e4483cf959ad11a4476a16a45b017062191d6640 Mon Sep 17 00:00:00 2001 From: Jim Ingham Date: Fri, 27 Sep 2013 01:13:01 +0000 Subject: [PATCH] Remove unnecessary checks for thread_plan_sp (we check for this at the top of the function.) llvm-svn: 191476 --- lldb/source/Target/Process.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lldb/source/Target/Process.cpp b/lldb/source/Target/Process.cpp index d6cd7bbd3aa9..3c9fea377e94 100644 --- a/lldb/source/Target/Process.cpp +++ b/lldb/source/Target/Process.cpp @@ -5358,7 +5358,7 @@ Process::RunThreadPlan (ExecutionContext &exe_ctx, 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 &exe_ctx, 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);