From b3cc24c2894f3f0e1833f50ad91127f5edb11096 Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Thu, 13 Apr 2017 00:36:02 +0000 Subject: [PATCH] [msan] Fix invalid use of vector constructor introduced by r299884. llvm-svn: 300149 --- compiler-rt/lib/msan/tests/msan_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/lib/msan/tests/msan_test.cc b/compiler-rt/lib/msan/tests/msan_test.cc index 12d6092ef718..eebce5ee293e 100644 --- a/compiler-rt/lib/msan/tests/msan_test.cc +++ b/compiler-rt/lib/msan/tests/msan_test.cc @@ -949,7 +949,7 @@ class MemorySanitizerIpTest : public ::testing::TestWithParam { std::vector GetAvailableIpSocketFamilies() { std::vector result; - for (int i : std::vector(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);