[Lldb-commits] [lldb] 559463e - [lldb] Use true instead of 0 (NFC)

Kazu Hirata via lldb-commits lldb-commits at lists.llvm.org
Sun Jul 24 12:27:26 PDT 2022


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);
 


        


More information about the lldb-commits mailing list