[Lldb-commits] [lldb] r135512 - /lldb/trunk/source/Host/common/SocketAddress.cpp
Greg Clayton
gclayton at apple.com
Tue Jul 19 13:06:26 PDT 2011
Author: gclayton
Date: Tue Jul 19 15:06:26 2011
New Revision: 135512
URL: http://llvm.org/viewvc/llvm-project?rev=135512&view=rev
Log:
Avoid calling accessor function more than once when result is already in
a local.
Modified:
lldb/trunk/source/Host/common/SocketAddress.cpp
Modified: lldb/trunk/source/Host/common/SocketAddress.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/common/SocketAddress.cpp?rev=135512&r1=135511&r2=135512&view=diff
==============================================================================
--- lldb/trunk/source/Host/common/SocketAddress.cpp (original)
+++ lldb/trunk/source/Host/common/SocketAddress.cpp Tue Jul 19 15:06:26 2011
@@ -214,7 +214,7 @@
if (addr_info_ptr)
::memset (addr_info_ptr, 0, sizeof(struct addrinfo));
}
- return IsValid();
+ return is_valid;
}
More information about the lldb-commits
mailing list