Add an assertion to aid in tracking down a bug

llvm-svn: 349865
This commit is contained in:
Adrian Prantl 2018-12-21 01:09:15 +00:00
parent 938d52538a
commit 5255094b3e
1 changed files with 3 additions and 1 deletions

View File

@ -1038,9 +1038,11 @@ void Thread::PushPlan(ThreadPlanSP &thread_plan_sp) {
if (thread_plan_sp) {
// If the thread plan doesn't already have a tracer, give it its parent's
// tracer:
if (!thread_plan_sp->GetThreadPlanTracer())
if (!thread_plan_sp->GetThreadPlanTracer()) {
assert(!m_plan_stack.empty());
thread_plan_sp->SetThreadPlanTracer(
m_plan_stack.back()->GetThreadPlanTracer());
}
m_plan_stack.push_back(thread_plan_sp);
thread_plan_sp->DidPush();