Author: Kazu Hirata
Date: 2022-07-24T12:27:06-07:00
New Revision: 559463e94ee38a48eed5c24fb4a1a4f379720fd2

URL: 
https://github.com/llvm/llvm-project/commit/559463e94ee38a48eed5c24fb4a1a4f379720fd2
DIFF: 
https://github.com/llvm/llvm-project/commit/559463e94ee38a48eed5c24fb4a1a4f379720fd2.diff

LOG: [lldb] Use true instead of 0 (NFC)

Identified with modernize-use-bool-literals.

Added: 
    

Modified: 
    lldb/source/Host/common/Host.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Host/common/Host.cpp 
b/lldb/source/Host/common/Host.cpp
index f35eb47ff6830..4a0f0240bd19c 100644
--- a/lldb/source/Host/common/Host.cpp
+++ b/lldb/source/Host/common/Host.cpp
@@ -172,7 +172,7 @@ MonitorChildProcessThreadFunction(::pid_t pid,
   ::sigaction(SIGUSR1, &sigUsr1Action, nullptr);
 #endif // __linux__
 
-  while(1) {
+  while (true) {
     log = GetLog(LLDBLog::Process);
     LLDB_LOG(log, "::waitpid({0}, &status, 0)...", pid);
 


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

Reply via email to