summaryrefslogtreecommitdiff
path: root/lldb/source/Target/Thread.cpp
diff options
context:
space:
mode:
authorRaphael Isemann <teemperor@gmail.com>2020-08-11 10:26:01 +0200
committerRaphael Isemann <teemperor@gmail.com>2020-08-11 10:26:01 +0200
commitdf916062c885f9b010f8348c87e9effae06a10c4 (patch)
tree0830f15cba8a4af68ea22df987c2e441eb3fb471 /lldb/source/Target/Thread.cpp
parentf99a18bbaa02037b8f2e9fc066d50e2373b5017e (diff)
[lldb][NFC] Fix warning in Thread::AutoCompleteThreadPlans
Diffstat (limited to 'lldb/source/Target/Thread.cpp')
-rw-r--r--lldb/source/Target/Thread.cpp2
1 files changed, 1 insertions, 1 deletions
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());