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 <squin...@outlook.com>
Co-authored-by: Troy-Butler <squin...@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.


        
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to