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

via lldb-commits lldb-commits at lists.llvm.org
Mon Apr 22 14:50:22 PDT 2024


Author: Troy Butler
Date: 2024-04-22T14:50:17-07:00
New Revision: 2987fca041caddead6655a34009b6a6517d0c7df

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

LOG: [lldb][Core] Fix pointless if conditon (#89650)

Addresses #85984

Signed-off-by: Troy-Butler <squintik at outlook.com>
Co-authored-by: Troy-Butler <squintik at outlook.com>

Added: 
    

Modified: 
    lldb/source/Core/Debugger.cpp

Removed: 
    


################################################################################
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