summaryrefslogtreecommitdiffstats
path: root/lldb/source/Target/Process.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2013-09-27 01:13:01 +0000
committerJim Ingham <jingham@apple.com>2013-09-27 01:13:01 +0000
commite4483cf959ad11a4476a16a45b017062191d6640 (patch)
treee2c79c27aa13d7e9c11290d3475a2fd8df78ab37 /lldb/source/Target/Process.cpp
parent9eb1432a99edf5ab08aa6bba467b8b25fb2503a0 (diff)
downloadbcm5719-llvm-e4483cf959ad11a4476a16a45b017062191d6640.tar.gz
bcm5719-llvm-e4483cf959ad11a4476a16a45b017062191d6640.zip
Remove unnecessary checks for thread_plan_sp (we check for this at the top of the function.)
llvm-svn: 191476
Diffstat (limited to 'lldb/source/Target/Process.cpp')
-rw-r--r--lldb/source/Target/Process.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Target/Process.cpp b/lldb/source/Target/Process.cpp
index d6cd7bbd3aa..3c9fea377e9 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);
OpenPOWER on IntegriCloud