[Lldb-commits] [lldb] [lldb][Core] Fix pointless if conditon (PR #89650)

Troy Butler via lldb-commits lldb-commits at lists.llvm.org
Mon Apr 22 11:57:26 PDT 2024


https://github.com/Troy-Butler created https://github.com/llvm/llvm-project/pull/89650

Addresses #85984 

>From 8aed7cb301347db507de10106ed41f9c6be50b1b Mon Sep 17 00:00:00 2001
From: Troy-Butler <squintik at outlook.com>
Date: Mon, 22 Apr 2024 14:56:11 -0400
Subject: [PATCH] [lldb][Core] Fix pointless if conditon

Signed-off-by: Troy-Butler <squintik at outlook.com>
---
 lldb/source/Core/Debugger.cpp | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/lldb/source/Core/Debugger.cpp b/lldb/source/Core/Debugger.cpp
index ebd112110e5f2d..19b3cf3bbf46b1 100644
--- a/lldb/source/Core/Debugger.cpp
+++ b/lldb/source/Core/Debugger.cpp
@@ -1115,9 +1115,6 @@ void Debugger::RunIOHandlerSync(const IOHandlerSP &reader_sp) {
   IOHandlerSP top_reader_sp = reader_sp;
 
   while (top_reader_sp) {
-    if (!top_reader_sp)
-      break;
-
     top_reader_sp->Run();
 
     // Don't unwind past the starting point.



More information about the lldb-commits mailing list