commit | e1cffb10e1bdf9083a770b4fad204d0f32121e70 | [log] [tgz] |
---|---|---|
author | Greg Clayton <gclayton@apple.com> | Tue Jul 19 20:06:26 2011 +0000 |
committer | Greg Clayton <gclayton@apple.com> | Tue Jul 19 20:06:26 2011 +0000 |
tree | 94f5c309d1b665a051f7298edc93923e2e5c511f | |
parent | d5b3e3c662c967feb455a01f307c3f4bc318eec9 [diff] [blame] |
Avoid calling accessor function more than once when result is already in a local. git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@135512 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Host/common/SocketAddress.cpp b/source/Host/common/SocketAddress.cpp index 9eb50ce..7e3929d 100644 --- a/source/Host/common/SocketAddress.cpp +++ b/source/Host/common/SocketAddress.cpp
@@ -214,7 +214,7 @@ if (addr_info_ptr) ::memset (addr_info_ptr, 0, sizeof(struct addrinfo)); } - return IsValid(); + return is_valid; }