[Lldb-commits] [lldb] ff18a6a - [lldb] Fix -Wparentheses in ThreadPlanStack.cpp

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Wed Apr 15 03:48:22 PDT 2020


Author: Pavel Labath
Date: 2020-04-15T12:47:57+02:00
New Revision: ff18a6acea318f739ced2a1d35a39cb874d2be91

URL: https://github.com/llvm/llvm-project/commit/ff18a6acea318f739ced2a1d35a39cb874d2be91
DIFF: https://github.com/llvm/llvm-project/commit/ff18a6acea318f739ced2a1d35a39cb874d2be91.diff

LOG: [lldb] Fix -Wparentheses in ThreadPlanStack.cpp

Added: 
    

Modified: 
    lldb/source/Target/ThreadPlanStack.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Target/ThreadPlanStack.cpp b/lldb/source/Target/ThreadPlanStack.cpp
index c51946aae71c..1cfc41dcd390 100644
--- a/lldb/source/Target/ThreadPlanStack.cpp
+++ b/lldb/source/Target/ThreadPlanStack.cpp
@@ -142,8 +142,8 @@ void ThreadPlanStack::PushPlan(lldb::ThreadPlanSP new_plan_sp) {
   // If the thread plan doesn't already have a tracer, give it its parent's
   // tracer:
   // The first plan has to be a base plan:
-  assert(m_plans.size() > 0 ||
-         new_plan_sp->IsBasePlan() && "Zeroth plan must be a base plan");
+  assert((m_plans.size() > 0 || new_plan_sp->IsBasePlan()) &&
+         "Zeroth plan must be a base plan");
 
   if (!new_plan_sp->GetThreadPlanTracer()) {
     assert(!m_plans.empty());


        


More information about the lldb-commits mailing list