From 5dc1ea61471a75066a1dc6b6094fb2338f69dc87 Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Thu, 28 Jul 2016 21:42:12 +0000 Subject: [PATCH] Fix some sign compare warnings breaking the -Werror build llvm-svn: 277040 --- unittests/Support/TargetParserTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unittests/Support/TargetParserTest.cpp b/unittests/Support/TargetParserTest.cpp index 4689c18e822..9c8d6374500 100644 --- a/unittests/Support/TargetParserTest.cpp +++ b/unittests/Support/TargetParserTest.cpp @@ -391,9 +391,9 @@ TEST(TargetParserTest, ARMparseArchProfile) { TEST(TargetParserTest, ARMparseArchVersion) { for (unsigned i = 0; i < array_lengthof(ARMArch); i++) if (((std::string)ARMArch[i]).substr(0, 4) == "armv") - EXPECT_EQ((ARMArch[i][4] - 48), ARM::parseArchVersion(ARMArch[i])); + EXPECT_EQ((ARMArch[i][4] - 48u), ARM::parseArchVersion(ARMArch[i])); else - EXPECT_EQ(5, ARM::parseArchVersion(ARMArch[i])); + EXPECT_EQ(5u, ARM::parseArchVersion(ARMArch[i])); } TEST(TargetParserTest, AArch64DefaultFPU) {