[llvm] r313422 - [llvm-cov] Fix a bot failure due to r313417
Vedant Kumar via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 15 16:14:22 PDT 2017
Author: vedantk
Date: Fri Sep 15 16:14:22 2017
New Revision: 313422
URL: http://llvm.org/viewvc/llvm-project?rev=313422&view=rev
Log:
[llvm-cov] Fix a bot failure due to r313417
There's a type mismatch issue with the arguments to a call to std::min
introduced in r313417.
http://lab.llvm.org:8011/builders/clang-cmake-thumbv7-a15/builds/11174
Modified:
llvm/trunk/tools/llvm-cov/CoverageSummaryInfo.cpp
Modified: llvm/trunk/tools/llvm-cov/CoverageSummaryInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-cov/CoverageSummaryInfo.cpp?rev=313422&r1=313421&r2=313422&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-cov/CoverageSummaryInfo.cpp (original)
+++ llvm/trunk/tools/llvm-cov/CoverageSummaryInfo.cpp Fri Sep 15 16:14:22 2017
@@ -68,9 +68,9 @@ FunctionCoverageSummary::get(const cover
for (unsigned I = CR.LineStart; I <= CR.LineEnd; ++I)
ExecutionCounts[I - LineStart] = ExecutionCount;
}
- unsigned UncoveredLines =
- std::min(std::count(ExecutionCounts.begin(), ExecutionCounts.end(), 0),
- (long)LinesNotSkipped);
+ unsigned UncoveredLines = std::min(
+ (unsigned)std::count(ExecutionCounts.begin(), ExecutionCounts.end(), 0),
+ (unsigned)LinesNotSkipped);
CoveredLines += LinesNotSkipped - UncoveredLines;
NumLines += LinesNotSkipped;
}
More information about the llvm-commits
mailing list