diff options
author | Greg Clayton <gclayton@apple.com> | 2016-02-26 01:20:20 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2016-02-26 01:20:20 +0000 |
commit | cec91ef92169483fbcc85c78a65e00a6fda1c35b (patch) | |
tree | 98e18b90c6eef89526ef8ecd294b88409b2a2f57 /lldb/source/Host/common/SocketAddress.cpp | |
parent | 5971f18133cbdece6012b3e0f54ae85877e4306f (diff) | |
download | bcm5719-llvm-cec91ef92169483fbcc85c78a65e00a6fda1c35b.tar.gz bcm5719-llvm-cec91ef92169483fbcc85c78a65e00a6fda1c35b.zip |
Fix all of the unannotated switch cases to annotate the fall through or do the right thing and break.
llvm-svn: 261950
Diffstat (limited to 'lldb/source/Host/common/SocketAddress.cpp')
-rw-r--r-- | lldb/source/Host/common/SocketAddress.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lldb/source/Host/common/SocketAddress.cpp b/lldb/source/Host/common/SocketAddress.cpp index c8b1687c378..1dc43ea6294 100644 --- a/lldb/source/Host/common/SocketAddress.cpp +++ b/lldb/source/Host/common/SocketAddress.cpp @@ -185,14 +185,12 @@ SocketAddress::GetIPAddress () const { case AF_INET: if (inet_ntop(GetFamily(), &m_socket_addr.sa_ipv4.sin_addr, str, sizeof(str))) - { return str; - } + break; case AF_INET6: if (inet_ntop(GetFamily(), &m_socket_addr.sa_ipv6.sin6_addr, str, sizeof(str))) - { return str; - } + break; } return ""; } |