diff options
author | Erich Keane <erich.keane@intel.com> | 2018-02-08 17:11:32 +0000 |
---|---|---|
committer | Erich Keane <erich.keane@intel.com> | 2018-02-08 17:11:32 +0000 |
commit | fa3e722597543b11ad7f2e21bf774db720244b58 (patch) | |
tree | 437b9af7382273f3bddae3aa4b6852a16560192d | |
parent | 6aafc8b30816e234deb5c395b7f8476e615a3ad1 (diff) | |
download | bcm5719-llvm-fa3e722597543b11ad7f2e21bf774db720244b58.tar.gz bcm5719-llvm-fa3e722597543b11ad7f2e21bf774db720244b58.zip |
Fix signed/unsigned compare warning I introduced
'size' of a vector is unsigned, and I accidentially compared
it to an int through GTEST. I switched it to unsigned, which
is the template parameter type anyway.
llvm-svn: 324625
-rw-r--r-- | llvm/unittests/Support/TargetParserTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/unittests/Support/TargetParserTest.cpp b/llvm/unittests/Support/TargetParserTest.cpp index 997bd4d3238..f636ca2c26b 100644 --- a/llvm/unittests/Support/TargetParserTest.cpp +++ b/llvm/unittests/Support/TargetParserTest.cpp @@ -279,7 +279,7 @@ TEST(TargetParserTest, testARMCPU) { "7-S")); } -static constexpr int NumARMCPUArchs = 82; +static constexpr unsigned NumARMCPUArchs = 82; TEST(TargetParserTest, testARMCPUArchList) { SmallVector<StringRef, NumARMCPUArchs> List; @@ -761,7 +761,7 @@ TEST(TargetParserTest, testAArch64CPU) { "8-A")); } -static constexpr int NumAArch64CPUArchs = 19; +static constexpr unsigned NumAArch64CPUArchs = 19; TEST(TargetParserTest, testAArch64CPUArchList) { SmallVector<StringRef, NumAArch64CPUArchs> List; |