From 71b4d7498ffecca5957fa0a63b1abf141d7b8441 Mon Sep 17 00:00:00 2001 From: David Spickett Date: Thu, 14 Dec 2023 16:54:47 +0000 Subject: [PATCH] [lldb] Fixup PopPlan assert Fixes 481bb62e50317cf20df9493aad842790162ac3e7. --- lldb/source/Target/Thread.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lldb/source/Target/Thread.cpp b/lldb/source/Target/Thread.cpp index 11aff37ac8c6..4801e3e58d9e 100644 --- a/lldb/source/Target/Thread.cpp +++ b/lldb/source/Target/Thread.cpp @@ -723,9 +723,10 @@ void Thread::DidStop() { SetState(eStateStopped); } ThreadPlanSP p; \ while ((p = GetPlans().GetPlanByIndex(i, false))) \ i++; \ - (void)i; -assert(i != 1 && "Cannot pop plan when there is only one plan (the base plan)"); -} + (void)i; \ + assert(i != 1 && \ + "Cannot pop plan when there is only one plan (the base plan)"); \ + } bool Thread::ShouldStop(Event *event_ptr) { ThreadPlan *current_plan = GetCurrentPlan();