Fix signed/unsigned comparison warning

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@297565 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Simon Pilgrim 2017-03-11 19:38:22 +00:00
parent 39936dcadb
commit 892d11dc78

View File

@ -328,7 +328,7 @@ TEST_P(CoverageMappingTest, load_coverage_for_several_functions) {
loadCoverageMapping();
const auto FunctionRecords = LoadedCoverage->getCoveredFunctions();
EXPECT_EQ(2U, std::distance(FunctionRecords.begin(), FunctionRecords.end()));
EXPECT_EQ(2, std::distance(FunctionRecords.begin(), FunctionRecords.end()));
for (const auto &FunctionRecord : FunctionRecords) {
CoverageData Data = LoadedCoverage->getCoverageForFunction(FunctionRecord);
std::vector<CoverageSegment> Segments(Data.begin(), Data.end());