[lldb] Fix PushPlan to set subplan to private

Call `SetPrivate(true)` for subplans pushed via `PushPlan()`, as described in its
docstring.

Differential Revision: https://reviews.llvm.org/D96916
This commit is contained in:
Dave Lee 2021-02-17 15:38:04 -08:00
parent 66dab2fa84
commit 354d10530d
1 changed files with 1 additions and 1 deletions

View File

@ -494,7 +494,7 @@ protected:
// another thread plan is never either of the above.
void PushPlan(lldb::ThreadPlanSP &thread_plan_sp) {
GetThread().PushPlan(thread_plan_sp);
thread_plan_sp->SetPrivate(false);
thread_plan_sp->SetPrivate(true);
thread_plan_sp->SetIsMasterPlan(false);
}