[llvm] r302971 - [CodeView] Silence some -Wsign-compare warnings
Justin Bogner via llvm-commits
llvm-commits at lists.llvm.org
Fri May 12 17:11:39 PDT 2017
Author: bogner
Date: Fri May 12 19:11:39 2017
New Revision: 302971
URL: http://llvm.org/viewvc/llvm-project?rev=302971&view=rev
Log:
[CodeView] Silence some -Wsign-compare warnings
Modified:
llvm/trunk/unittests/DebugInfo/CodeView/RandomAccessVisitorTest.cpp
Modified: llvm/trunk/unittests/DebugInfo/CodeView/RandomAccessVisitorTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/DebugInfo/CodeView/RandomAccessVisitorTest.cpp?rev=302971&r1=302970&r2=302971&view=diff
==============================================================================
--- llvm/trunk/unittests/DebugInfo/CodeView/RandomAccessVisitorTest.cpp (original)
+++ llvm/trunk/unittests/DebugInfo/CodeView/RandomAccessVisitorTest.cpp Fri May 12 19:11:39 2017
@@ -229,12 +229,12 @@ TEST_F(RandomAccessVisitorTest, Multiple
}
// [0,8) should be present
- EXPECT_EQ(8, Visitor.database().size());
+ EXPECT_EQ(8u, Visitor.database().size());
for (uint32_t I = 0; I < 8; ++I)
EXPECT_TRUE(ValidateDatabaseRecord(Visitor, I));
// 5, 5, 5
- EXPECT_EQ(3, TestState->Callbacks.count());
+ EXPECT_EQ(3u, TestState->Callbacks.count());
for (auto I : enumerate(IndicesToVisit))
EXPECT_TRUE(ValidateVisitedRecord(I.index(), I.value()));
}
@@ -257,12 +257,12 @@ TEST_F(RandomAccessVisitorTest, Descendi
}
// [0, 7]
- EXPECT_EQ(8, Visitor.database().size());
+ EXPECT_EQ(8u, Visitor.database().size());
for (uint32_t I = 0; I < 8; ++I)
EXPECT_TRUE(ValidateDatabaseRecord(Visitor, I));
// 2, 4, 7
- EXPECT_EQ(3, TestState->Callbacks.count());
+ EXPECT_EQ(3u, TestState->Callbacks.count());
for (auto I : enumerate(IndicesToVisit))
EXPECT_TRUE(ValidateVisitedRecord(I.index(), I.value()));
}
@@ -285,12 +285,12 @@ TEST_F(RandomAccessVisitorTest, Ascendin
}
// [0, 7]
- EXPECT_EQ(8, Visitor.database().size());
+ EXPECT_EQ(8u, Visitor.database().size());
for (uint32_t I = 0; I < 8; ++I)
EXPECT_TRUE(ValidateDatabaseRecord(Visitor, I));
// 2, 4, 7
- EXPECT_EQ(3, TestState->Callbacks.count());
+ EXPECT_EQ(3u, TestState->Callbacks.count());
for (auto &I : enumerate(IndicesToVisit))
EXPECT_TRUE(ValidateVisitedRecord(I.index(), I.value()));
}
@@ -314,12 +314,12 @@ TEST_F(RandomAccessVisitorTest, StopPrem
}
// [0, 8) should be visited.
- EXPECT_EQ(8, Visitor.database().size());
+ EXPECT_EQ(8u, Visitor.database().size());
for (uint32_t I = 0; I < 8; ++I)
EXPECT_TRUE(ValidateDatabaseRecord(Visitor, I));
// [0, 2]
- EXPECT_EQ(3, TestState->Callbacks.count());
+ EXPECT_EQ(3u, TestState->Callbacks.count());
for (auto I : enumerate(IndicesToVisit))
EXPECT_TRUE(ValidateVisitedRecord(I.index(), I.value()));
}
@@ -342,12 +342,12 @@ TEST_F(RandomAccessVisitorTest, InnerChu
}
// [4, 9)
- EXPECT_EQ(5, Visitor.database().size());
+ EXPECT_EQ(5u, Visitor.database().size());
for (uint32_t I = 4; I < 9; ++I)
EXPECT_TRUE(ValidateDatabaseRecord(Visitor, I));
// 5, 7
- EXPECT_EQ(2, TestState->Callbacks.count());
+ EXPECT_EQ(2u, TestState->Callbacks.count());
for (auto &I : enumerate(IndicesToVisit))
EXPECT_TRUE(ValidateVisitedRecord(I.index(), I.value()));
}
More information about the llvm-commits
mailing list