[msan] Fix invalid use of vector constructor introduced by r299884.

llvm-svn: 300149
This commit is contained in:
Vitaly Buka 2017-04-13 00:36:02 +00:00
parent e1ec29869b
commit b3cc24c289
1 changed files with 1 additions and 1 deletions

View File

@ -949,7 +949,7 @@ class MemorySanitizerIpTest : public ::testing::TestWithParam<int> {
std::vector<int> GetAvailableIpSocketFamilies() {
std::vector<int> result;
for (int i : std::vector<int>(AF_INET, AF_INET6)) {
for (int i : {AF_INET, AF_INET6}) {
int s = socket(i, SOCK_STREAM, 0);
if (s > 0) {
result.push_back(i);