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()); _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits