Skip to content

Commit 71b4d74

Browse files
committed
[lldb] Fixup PopPlan assert
Fixes 481bb62.
1 parent 481bb62 commit 71b4d74

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lldb/source/Target/Thread.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -723,9 +723,10 @@ void Thread::DidStop() { SetState(eStateStopped); }
723723
ThreadPlanSP p; \
724724
while ((p = GetPlans().GetPlanByIndex(i, false))) \
725725
i++; \
726-
(void)i;
727-
assert(i != 1 && "Cannot pop plan when there is only one plan (the base plan)");
728-
}
726+
(void)i; \
727+
assert(i != 1 && \
728+
"Cannot pop plan when there is only one plan (the base plan)"); \
729+
}
729730

730731
bool Thread::ShouldStop(Event *event_ptr) {
731732
ThreadPlan *current_plan = GetCurrentPlan();

0 commit comments

Comments
 (0)