[Lldb-commits] [lldb] df91606 - [lldb][NFC] Fix warning in Thread::AutoCompleteThreadPlans

Raphael Isemann via lldb-commits lldb-commits at lists.llvm.org
Tue Aug 11 01:26:23 PDT 2020


Author: Raphael Isemann
Date: 2020-08-11T10:26:01+02:00
New Revision: df916062c885f9b010f8348c87e9effae06a10c4

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

LOG: [lldb][NFC] Fix warning in Thread::AutoCompleteThreadPlans

Added: 
    

Modified: 
    lldb/source/Target/Thread.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Target/Thread.cpp b/lldb/source/Target/Thread.cpp
index bc5d31190a61..049e458d8b19 100644
--- a/lldb/source/Target/Thread.cpp
+++ b/lldb/source/Target/Thread.cpp
@@ -1111,7 +1111,7 @@ void Thread::AutoCompleteThreadPlans(CompletionRequest &request) const {
   // Iterate from the second plan (index: 1) to skip the base plan.
   ThreadPlanSP p;
   uint32_t i = 1;
-  while (p = plans.GetPlanByIndex(i, false)) {
+  while ((p = plans.GetPlanByIndex(i, false))) {
     StreamString strm;
     p->GetDescription(&strm, eDescriptionLevelInitial);
     request.TryCompleteCurrentArg(std::to_string(i), strm.GetString());


        


More information about the lldb-commits mailing list