[compiler-rt] r300249 - Revert "[msan] Fix msan_test broken after r299884."
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 13 13:25:21 PDT 2017
Author: vitalybuka
Date: Thu Apr 13 15:25:20 2017
New Revision: 300249
URL: http://llvm.org/viewvc/llvm-project?rev=300249&view=rev
Log:
Revert "[msan] Fix msan_test broken after r299884."
This does not fix the test, it still fails to bind.
This reverts commit r300150.
Modified:
compiler-rt/trunk/lib/msan/tests/msan_test.cc
Modified: compiler-rt/trunk/lib/msan/tests/msan_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/msan/tests/msan_test.cc?rev=300249&r1=300248&r2=300249&view=diff
==============================================================================
--- compiler-rt/trunk/lib/msan/tests/msan_test.cc (original)
+++ compiler-rt/trunk/lib/msan/tests/msan_test.cc Thu Apr 13 15:25:20 2017
@@ -899,7 +899,7 @@ class SocketAddr4 : public SocketAddr {
memset(&sai_, 0, sizeof(sai_));
sai_.sin_family = AF_INET;
sai_.sin_port = port;
- sai_.sin_addr.s_addr = htonl(INADDR_ANY);
+ sai_.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
}
sockaddr *ptr() override { return reinterpret_cast<sockaddr *>(&sai_); }
@@ -917,7 +917,7 @@ class SocketAddr6 : public SocketAddr {
memset(&sai_, 0, sizeof(sai_));
sai_.sin6_family = AF_INET6;
sai_.sin6_port = port;
- sai_.sin6_addr = in6addr_any;
+ sai_.sin6_addr = in6addr_loopback;
}
sockaddr *ptr() override { return reinterpret_cast<sockaddr *>(&sai_); }
More information about the llvm-commits
mailing list