[test] Silence gcc 7.4 warning [NFC]
authorMikael Holmen <mikael.holmen@ericsson.com>
Thu, 11 Jul 2019 07:07:23 +0000 (07:07 +0000)
committerMikael Holmen <mikael.holmen@ericsson.com>
Thu, 11 Jul 2019 07:07:23 +0000 (07:07 +0000)
Without this gcc 7.4.0 complains with
 ../unittests/Analysis/ValueTrackingTest.cpp:937:66: error: ISO C++11 requires at least one argument for the "..." in a variadic macro [-Werror]
                          ::testing::ValuesIn(IsBytewiseValueTests));
                                                                   ^

llvm-svn: 365738

llvm/unittests/Analysis/ValueTrackingTest.cpp

index a25249f..90c879d 100644 (file)
@@ -934,7 +934,7 @@ const std::pair<const char *, const char *> IsBytewiseValueTests[] = {
 };
 
 INSTANTIATE_TEST_CASE_P(IsBytewiseValueParamTests, IsBytewiseValueTest,
-                        ::testing::ValuesIn(IsBytewiseValueTests));
+                        ::testing::ValuesIn(IsBytewiseValueTests),);
 
 TEST_P(IsBytewiseValueTest, IsBytewiseValue) {
   auto M = parseModule(std::string("@test = global ") + GetParam().second);