[llvm] r324625 - Fix signed/unsigned compare warning I introduced
Erich Keane via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 8 09:11:32 PST 2018
Author: erichkeane
Date: Thu Feb 8 09:11:32 2018
New Revision: 324625
URL: http://llvm.org/viewvc/llvm-project?rev=324625&view=rev
Log:
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.
Modified:
llvm/trunk/unittests/Support/TargetParserTest.cpp
Modified: llvm/trunk/unittests/Support/TargetParserTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/Support/TargetParserTest.cpp?rev=324625&r1=324624&r2=324625&view=diff
==============================================================================
--- llvm/trunk/unittests/Support/TargetParserTest.cpp (original)
+++ llvm/trunk/unittests/Support/TargetParserTest.cpp Thu Feb 8 09:11:32 2018
@@ -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;
More information about the llvm-commits
mailing list