[Lldb-commits] [PATCH] D131543: [LLDB][NFC] Fix the style issue in TCPSocket

Slava Gurevich via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue Aug 9 23:19:38 PDT 2022


fixathon created this revision.
fixathon added a reviewer: jingham.
Herald added a project: All.
fixathon requested review of this revision.
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.

Fixing a small style nit described in D131294 <https://reviews.llvm.org/D131294>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D131543

Files:
  lldb/source/Host/common/TCPSocket.cpp


Index: lldb/source/Host/common/TCPSocket.cpp
===================================================================
--- lldb/source/Host/common/TCPSocket.cpp
+++ lldb/source/Host/common/TCPSocket.cpp
@@ -294,7 +294,7 @@
 
     lldb_private::SocketAddress &AddrIn = m_listen_sockets[listen_sock];
     if (!AddrIn.IsAnyAddr() && AcceptAddr != AddrIn) {
-      if (kInvalidSocketValue != sock) {
+      if (sock != kInvalidSocketValue) {
         CLOSE_SOCKET(sock);
         sock = kInvalidSocketValue;
       }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D131543.451359.patch
Type: text/x-patch
Size: 508 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20220810/4cca3564/attachment.bin>


More information about the lldb-commits mailing list