[llvm] r276974 - Fix signed/unsigned warning.

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 28 06:29:56 PDT 2016


Author: rksimon
Date: Thu Jul 28 08:29:56 2016
New Revision: 276974

URL: http://llvm.org/viewvc/llvm-project?rev=276974&view=rev
Log:
Fix signed/unsigned warning.

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=276974&r1=276973&r2=276974&view=diff
==============================================================================
--- llvm/trunk/unittests/Support/TargetParserTest.cpp (original)
+++ llvm/trunk/unittests/Support/TargetParserTest.cpp Thu Jul 28 08:29:56 2016
@@ -133,9 +133,9 @@ TEST(TargetParserTest, ARMFPUVersion) {
        FK <= ARM::FPUKind::FK_LAST;
        FK = static_cast<ARM::FPUKind>(static_cast<unsigned>(FK) + 1))
     if (FK == ARM::FK_LAST)
-      EXPECT_EQ(0, ARM::getFPUVersion(FK));
+      EXPECT_EQ(0U, ARM::getFPUVersion(FK));
     else
-      EXPECT_LE(0, ARM::getFPUVersion(FK));
+      EXPECT_LE(0U, ARM::getFPUVersion(FK));
 }
 
 TEST(TargetParserTest, ARMFPUNeonSupportLevel) {
@@ -143,9 +143,9 @@ TEST(TargetParserTest, ARMFPUNeonSupport
        FK <= ARM::FPUKind::FK_LAST;
        FK = static_cast<ARM::FPUKind>(static_cast<unsigned>(FK) + 1))
     if (FK == ARM::FK_LAST)
-      EXPECT_EQ(0, ARM::getFPUNeonSupportLevel(FK));
+      EXPECT_EQ(0U, ARM::getFPUNeonSupportLevel(FK));
     else
-      EXPECT_LE(0, ARM::getFPUNeonSupportLevel(FK));
+      EXPECT_LE(0U, ARM::getFPUNeonSupportLevel(FK));
 }
 
 TEST(TargetParserTest, ARMFPURestriction) {
@@ -153,9 +153,9 @@ TEST(TargetParserTest, ARMFPURestriction
        FK <= ARM::FPUKind::FK_LAST;
        FK = static_cast<ARM::FPUKind>(static_cast<unsigned>(FK) + 1))
     if (FK == ARM::FK_LAST)
-      EXPECT_EQ(0, ARM::getFPURestriction(FK));
+      EXPECT_EQ(0U, ARM::getFPURestriction(FK));
     else
-      EXPECT_LE(0, ARM::getFPURestriction(FK));
+      EXPECT_LE(0U, ARM::getFPURestriction(FK));
 }
 
 TEST(TargetParserTest, ARMDefaultFPU) {




More information about the llvm-commits mailing list